The Chief
04-21-2006, 02:31 AM
Hey all,
I am currently in the process of moving over to lighttpd instead of Apache and I am having some problems with my rewrite rules.
I am using this rule for drupal:
url.rewrite-final = (
"^/system/test/(.*)$" => "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^/([^.?]*)$" => "/index.php?q=$1",
)
and I have a hack that redirects my forum users to a url like this:
http://www.whatever.com/forums/member.php?u=234 to http://www.whatever.com/forums/Chris
and I have tried many different rules such as:
"^/forums/([^.?]*)" => "/forums/member.php?username=$1"
And this does work by redirecting /forums/Username to /forums/member.php?u=username but no matter how many different rules or things i try, i cannot figure out how to get a rule to redirect /forums/Username to that url without it interfering with loading your forum (index.php page and other things)
can anybody help out?
I am currently in the process of moving over to lighttpd instead of Apache and I am having some problems with my rewrite rules.
I am using this rule for drupal:
url.rewrite-final = (
"^/system/test/(.*)$" => "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^/([^.?]*)$" => "/index.php?q=$1",
)
and I have a hack that redirects my forum users to a url like this:
http://www.whatever.com/forums/member.php?u=234 to http://www.whatever.com/forums/Chris
and I have tried many different rules such as:
"^/forums/([^.?]*)" => "/forums/member.php?username=$1"
And this does work by redirecting /forums/Username to /forums/member.php?u=username but no matter how many different rules or things i try, i cannot figure out how to get a rule to redirect /forums/Username to that url without it interfering with loading your forum (index.php page and other things)
can anybody help out?
