|
|
|
"(plus)" - musst on all lines after "[0-9]" include, and at end "(dollar)x" or "(dollar)x(dollar)y" on all lines like hatacces
|
|
|
|
i think this example for lighttpd is complettly identikal to apache version:
PHP:
url.rewrite-once = ( "^index.html$" => "/index.php", "^(.*)-b-([0-9] ).ts(.*)$" => "/browse.php?cat=", "^(.*)-c-([0-9] ).ts(.*)$" => "/browse.php?browse_categories&category=", "^(.*)-d-([0-9] ).ts(.*)$" => "/download.php?id=", "^(.*)-s-([0-9] ).ts(.*)$" => "/details.php?id=", "^(.*)-a-(.*).ts(.*)$" => "/announce.php?passkey=", "^(.*)-u?([0-9] ).ts(.*)$" => "/userdetails.php?id=", "^(.*)-f([0-9] ).tsf(.*)$" => "/tsf_forums/index.php?fid=", "^(.*)-fd([0-9] ).tsf(.*)$" => "/tsf_forums/forumdisplay.php?fid=", "^(.*)-t([0-9] ).tsf(.*)$" => "/tsf_forums/showthread.php?tid=" )
i use lighttpd, and have now this in my config, all working ok, beside 2lines for browse display, i testing further
|
|
|
|
create a topic about your issue, hopefully they will help you.
|
|
|
|
xam:
i can`t find there any usefull informations.. ;-)
|
|
|
|
|
xam!
your script ****ed up (eat) my $1 variable in php code;p
|
|
|
|
hi!
i just did it
PHP:
url.rewrite-once = ("^(.*)-b-([0-9] ).ts(.*)$" => "/browse.php?cat="
"^(.*)-c-([0-9] ).ts(.*)$" => "/browse.php?browse_categories&category="
"^(.*)-d-([0-9] ).ts(.*)$" => "/download.php?id="
"^(.*)-s-([0-9] ).ts(.*)$" => "/details.php?id="
"^(.*)-a-(.*)s.ts(.*)$" => "/announce.php?passkey="
"^(.*)-u([0-9] ).ts(.*)$" => "/userdetails.php?id="
"^(.*)-f([0-9] ).ts(.*)$" => "/tsf_forums/index.php?fid="
"^(.*)-fd([0-9] ).ts(.*)$" => "/tsf_forums/forumdisplay.php?fid="
"^(.*)-t([0-9] ).ts(.*)$" => "/tsf_forums/showthread.php?tid="
)
but i don`t know that it is good.
from userdetails.php there was $2$3 and i change it to only one variable...
|
|
|
|
Apply the same basic idea to the other rules as well
|
|
|
|
I'm not 100% sure, since i've not done this on lighttpd, but should be like this:
SQL: url.rewrite-once = ("^(.*)-b-([0-9]+).ts(.*)$" => "/browse.php?cat=$1")
|
|
|
|
alanb:
could you rewrite this into lighttpd rewrite link
PHP:
RewriteRule ^(.*)-b-([0-9] ).ts(.*)$ browse.php?cat=$2 [QSA,L]
if you do this, i will re-write all others;-)
|
|
|
|
Nice document alanb..
Btw, I will test 'Kick Function' for this system.. Alanb you will be kicked as soon, please re-join to this group
|
|
|
|
Rewrite rules for lighttpd work like this:
PHP:
url.rewrite-once = ("^index.html$" => "/index.php")
|
|
|
|
maybe someone have a rewrite rule for lighttpd ?
my performance friends?
|
|
|
|
Cheat Sheet for Apache Mod Rewrite Commands
Useful tool for beginners
|
|