Page 1 of 1
mod_rewrite syntax issue
Posted: Sat Sep 23, 2006 6:57 pm
by Benjamin
Is something wrong with this? It works on one server, but not on another.
Code: Select all
RewriteRule ^([^/]*?)\.html display.php?query=$1 [L]
Posted: Sun Sep 24, 2006 7:02 pm
by Benjamin
I'm getting an internal server error on this as well. The error log is saying that it can't parse the regex, but it works on a different server.
Posted: Mon Sep 25, 2006 10:35 am
by pickle
Maybe try moving hte *? outside the parentheses. Did this regex run on another server running the same software?
Does mod_rewrite use PECL syntax? If so, you could try throwing this through a php script & see if it gives you a more descriptive error.