I have a rewrite in my httpd.conf to convert URLs to pull out dynamic content: RewriteCond %{REQUEST_URI} !^/images* RewriteCond %{REQUEST_URI} !^/.*.php* RewriteCond %{REQUEST_URI} !^/.*.ico* RewriteCond %{REQUEST_URI} !^/.*.txt* RewriteCond %{REQUEST_URI} !^\/$ RewriteRule ^/(.*)$ /loader.php\?loc=$1&%{QUERY_STRING} [L] It works fine with anything such as www.mydomain.com/widget going to www.mydomain.com/loader.php?loc=widget which is exactly what I want. That is, until my URL contains 'wic' somewhere in it! For example: www.mydomain.com/wic www.mydomain.com/wic/widget www.mydomain.com/warwick www.mydomain.com/middlewich All of these are completely ignored by my rewrite rule and fall through the bottom giving me a 404. Why? I cannot see any reason for this! Can anyone offer any advice or pointers? I'm using Apache/2.0.55 on WinXP Pro
Not sure if this will have any impact or not, but you could try replacing the RewriteRule with RewriteRule ^/(.*)$ /loader.php\?loc=$1 [L,QSA] Code (markup): The QSA flag tells the rewrite engine to append the existing query string if one exists. Other than that remote possibility, I can't see anything that would cause the issues that you're describing I'm afraid
No, unfortunately that didn't solve the problem. Further, I've discovered that it's not just 'wic' but anything with 'ic' in it. But not something starting 'ic' Any other ideas out there? Anyone else seeing anything similar?
And as soon as I typed my reply, I worked out the problem! It's my exclusion to cope with the dreaded favicon.ico By removing that line, the problem has gone away.