| Posted: 12 August 2008 at 12:01pm | IP Logged
|
|
|
Thanks Lexey
Final part of my jigsaw, is to allow the product redirect to occur in the same folder as the category.
I am going to apply individual rules for each of the sub folders folder1, folder2 as per below
RewriteRule (/folder1/category/)([^/?.]+\.asp) $1category.asp\?url=$2 [I,L]
But I think the second rules may not work, unless I exclude the match if it finds a further sub folder. So I need a rule that rewrites this
http://www.mywebsite/folder1/productname.asp
So I presume I would need something like
RewriteRule (/folder1/)(?!category)(productname/)([^/?.]+\.asp) $1product.asp\?url=$2 [I,L]
|