Web Servers General Talk - Apache Mod_Rewrite, confusion!!!

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > May 2006 > Apache Mod_Rewrite, confusion!!!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache Mod_Rewrite, confusion!!!
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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com