| mtdashti@gmail.com 2006-05-23, 1:18 pm |
| Hi,
I tried the following .htaccess files to feel mod_rewrite with my
rewrite rules, the result I can't comprehend. I supposed that when
mod_rewrite finishes a rewrite round, it tries to look up the result in
the file system, which is not apparently true.
(1) when I ask for http://www.abc.com/abc/2/y.html, the result is
z.html. I expected x.html.
RewriteEngine On
Options +FollowSymlinks
RewriteBase /abc/2/
RewriteRule ^x\.html$ z.html
RewriteRule ^y\.html$ x.html
(2) when I ask for http://www.abc.com/abc/2/y.html, the result is
x.html.
RewriteEngine On
Options +FollowSymlinks
RewriteBase /abc/2/
RewriteRule .* x.html
Do you know why it does not loop on the second rule set?
Thanks!
PS: This happened on Apache 1.3.27.
|