URI to rewrite engine is changed from Apache GET request

Oh, the strange things mod_rewrite does!

URI to rewrite engine is changed from Apache GET request

Postby teb » Tue Dec 05, 2006 2:28 am

Hi,

I have this problem with my Mod_Rewrite implementation. I'm running a dev site on my local Mac OS X platform. I noticed this weird behavior where the URI that is passed to apache, is modified by the time it gets to the rewrite engine. Here is the apache access log:

127.0.0.1 - - [05/Dec/2006:18:16:46 +0800] "GET /help/FAQ.html HTTP/1.1" 200 11361

And here is the rewrite log:

127.0.0.1 - - [05/Dec/2006:18:18:19 +0800] [DetDev1/sid#182b49c][rid#183c034/initial] (3) [per-dir /Users/tb/Sites/DetDev1/] add path-info postfix: /Users/tb/Sites/DetDev1/help.php -> /Users/tb/Sites/DetDev1/help.php/FAQ.html

As you can see, the address is changed by something and a ".php" is added which throws off everything. The weirder thing is that some addresses do not get modified such as this and so the rewrite works. This does not happen in the live site. Any ideas? I think something is translating the request before it gets to the logs. What can this be?

Thanks
teb
 
Posts: 1
Joined: Tue Dec 05, 2006 2:08 am

Postby richardk » Tue Dec 05, 2006 9:11 am

It's probably MultiViews.
Code: Select all
Options -MultiViews


Do you have a file called help.php?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Idiosyncrasies

Who is online

Users browsing this forum: No registered users and 4 guests

cron