Apache Mod_Rewrite, confusion!!!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers General Talk > Apache Mod_Rewrite, confusion!!!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Apache Mod_Rewrite, confusion!!!  
mtdashti@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-06 06: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.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:43 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register