mod_rewrite RewriteRule is not working
Posted
by buggy1985
on Server Fault
See other posts from Server Fault
or by buggy1985
Published on 2010-05-21T10:12:51Z
Indexed on
2010/05/21
10:20 UTC
Read the original article
Hit count: 284
mod-rewrite
|beginner
Hi,
This is a follow-up of this question: Rewrite URL - how to get the hostname and the path?
And a copy of this: mod_rewrite RewriteRule is not working
I got this Rewrite Rule:
RewriteEngine On
RewriteRule ^(http://[-A-Za-z0-9+&@#/%=~_|!:,.;]*)/([-A-Za-z0-9+&@#/%=~_|!:,.;]*)\?([A-Za-z0-9+&@#/%=~_|!:,.;]*)$ http://http://www.xmldomain.com/bla/$2?$3&rtype=xslt&xsl=$1/$2.xsl
it seems to be correct, and exactly what I need. But it doesn't work on my server. I get a 404 page not found error.
mod_rewrite is enabled, as the following simple rule is working fine:
RewriteEngine On
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]
Can you help?
Thanks
© Server Fault or respective owner