Posted by Justin Koivisto on 12/21/05 17:03
Andrew wrote:
> hi there,
> does anyone know why this modrewrite doesn't work?
>
> RewriteEngine On
> RewriteBase /
> RewriteRule ^([^/]+)\.html$ pdisplay.php?page=p2/$1&type=htm
> RewriteRule ^([^/]+)\.html$ gdisplay.php?page=g2/$1&type=htm
>
> It works for the first rule but not the second?
The first RewriteRule matches the request whatever.html and then changes
it to:
pdisplay.php?page=p2/whatever&type=html
The second rule uses the *same* pattern to match and tries to match the
above.
It looks like you actually wanted to use the following rule:
RewriteRule ^([^/]+)\.htm$ gdisplay.php?page=g2/$1&type=htm
-------------------------^ (removed extra "l" in the pattern)
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|