| Posted: 17 July 2008 at 10:57am | IP Logged
|
|
|
I have two sites with identical rules, apart from the VDir and category:
RewriteRule products/(.*)/(.*)\.[htm|html] /vDir/default.asp?category=category&service=ec-frame&opt=subcat&ct=$1&subcat=$2 [I,L,QSA]
One works as expected, the other doesn't. From the log, the one that fails is not matching the rule.
This one works:
http://www.yournewshop.co.uk/products/clocks/mantel.html
Log says:
(2) init rewrite engine with requested uri /products/clocks/wall.html (1) Htaccess process request (1) Htaccess process request d:\inetpub\wwwroot\ecommerce\website\.htaccess (3) applying pattern 'products/(.*)/(.*)\.[htm|html]' to uri 'products/clocks/wall.html' (1) escaping /ec-user/default.asp?category=ec-demo-runs&service=ec-frame&opt=subcat&ct=clocks&subcat=wall (1) Rewrite URL to >> /ec-user/default.asp?category=ec-demo-runs&service=ec-frame&opt=subcat&ct=clocks&subcat=wall (2) rewrite 'products/clocks/wall.html' -> '/ec-user/default.asp?category=ec-demo-runs&service=ec-frame&opt=subcat&ct=clocks&subcat=wall' (2) internal redirect with /ec-user/default.asp?category=ec-demo-runs&service=ec-frame&opt=subcat&ct=clocks&subcat=wall [INTERNAL REDIRECT]
This one doesn't:
http://www/le-west.co.uk/products/equipment/training.html
And the log shows:
(2) init rewrite engine with requested uri /products/equipment/training.html (1) Htaccess process request (1) Htaccess process request d:\inetpub\wwwroot\le-west\website\.htaccess (3) applying pattern 'products/(.*)/(.*)\.[htm|html]' to uri 'equipment/training.html' (3) applying pattern 'search/(.*)\.htm' to uri 'equipment/training.html'
Something I noticed immediately is that for the one that works, the URI being considered includes "products/" and for the one that fails, it doesn't.
Neither .htacess file has a BASE directive, so they should both assume the site root, surely?
What's going on here?
__________________ --
Marc
|