1. Simple leech URL mod_rewrite

Simple leech URL mod_rewrite

  |   2
Leech Mod_Rewrite URL

We recently has the user send us email asking how to make mod_rewrite for leech links which using engine/go.php, the user want to have new rewrite url from:
To be like this
So I will give quick tutorial for this mod_rewrite rules in case some of you would like to use it in your site.

Based on the rewrite rule, it should be easily done by follow the steps below:

Open your root .htaccess file (yoursite.com/.htaccess)

RewriteRule ^page/(.*)$ index.php?cstart=$1 [L]

Add below:
RewriteRule ^url/(.*)$ engine/go.php?url=$1 [L]

Open /engine/classes/parse.class.php

$url['html'] = $config['http_home_url'] . "engine/go.php?url=" . rawurlencode( base64_encode( $url['html'] ) );

Replace with:
$url['html'] = $config['http_home_url'] . "url/" . rawurlencode( base64_encode( $url['html'] ) );

That's all...

Now when you add the site url using leech tag bbcode, you will get the url like this:

Please note that, the change may not affect the leech url which already posted before this change, to get all previous posts with leech to use this mod_rewrite, please use rebuild your articles within admin CP.

Note 2: this rewrite may not work correctly if you use Dude Smart Leech, however, I haven't test it myself, if you test it, then let us know if it works...thanks

If you ever need quick tutorials like this, please don't use email or PM to contact us, use forum instead so some one else can learn the tutorials...

Thank you and enjoy quick and short tutorial...
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 2

Commented By ivanov16 on July 10, 2012 (9:23 pm)
Replace "engine/go.php?url=" with "url/"

We will get the error all links when you edit your posts sad
N/A 60Forum topics : 27Forum replies : 106Forum likes : 1
Commented By sawanbanna on July 11, 2012 (12:07 am)
umh...you are right, I didn't test on that edit option, I will have to take a look at it later, got to finish a few things first...will look at it and update it as soon as I can...
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.