[wp-hackers] mod rewrite problems
rabin at rab.in
Thu May 4 05:49:54 GMT 2006
On 5/4/06, Stefan Hartweg <stefan at hartweg.net> wrote:
> #the following line should redirect to test.html
> RewriteRule ^/test.html$ /test/test.html
You need to remove the inital "/" in the match rule. That
would be enough to get it working, but you should also
escape the "." to be fully correct. (Regular expressions -
otherwise "testahtml" would also be rewritten).
Also if "test/test.html" is a relative directory, you should
drop the leading slash there too.
What you need is:
RewriteRule ^test\.html$ test/test.html
More information about the wp-hackers