Why would a per-dir prefix not be removed?

Oh, the strange things mod_rewrite does!

Why would a per-dir prefix not be removed?

Postby mikeshantz » Tue May 30, 2006 8:34 am

My understanding is that when using per-directory rewrite rules the directory is stripped before applying the rule.

For example, my log file (at level 3) contains:
Code: Select all
[...] strip per-dir prefix: C:/webroot/somedir/somefile -> somefile
[...] applying pattern 'somepattern' to uri 'somefile'
[...] strip per-dir prefix: C:/webroot/somedir/somefile -> somefile
[...] applying pattern 'someotherpattern' to uri 'somefile'

for rules from the .htaccess file in C:/webroot/somedir.

I am experiencing a problem where the rules are being applied to the whole path, looking something like:
Code: Select all
[...] applying pattern 'somepattern' to uri 'C:/webroot/somedir'
[...] applying pattern 'someotherpattern' to uri 'C:/webroot/somedir'


Can anyone explain to me why this would be happening?
mikeshantz
 
Posts: 1
Joined: Tue May 30, 2006 8:06 am

Postby richardk » Tue May 30, 2006 11:25 am

What rules are you using?

Where exactly are you putting them (in a .htaccess file (Where?) or in a *.conf file?)?
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 1 guest

cron