Forum Moderators: phranque
[edited by: phranque at 7:21 pm (utc) on Feb 12, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]
[edited by: phranque at 7:21 pm (utc) on Feb 12, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]
[edited by: phranque at 2:06 pm (utc) on Feb 13, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]
the images and css aren't being excluded by the rule marked ****
RewriteCond %{REQUEST_URI} !^/(images|css|favicon\.ico|robots\.txt)
RewriteRule ^([^/]+)/$ /SubCat5.cfm?catname=$1 [NC,L]
RewriteRule ^([^/]+)/([^/]+)/$ /SubSubCat5.cfm?catname=$1 [NC,L]
RewriteRule Product-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$ /Details2.cfm?Name=$1&ProdID=$2&category=$3&secondary=$4&third=$5&brand=$6 [NC]
RewriteRule Product-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+).html$ /Details2.cfm?Name=$1&ProdID=$2&category=$3&secondary=$4&third=$5&brand=$6 [NC]
/$
[edited by: phranque at 1:24 pm (utc) on Mar 12, 2014]
[edit reason] unlinked url [/edit]
# Rewrite rules for static pages
RewriteRule ^about-us /information/about-us/ [NC,L]
RewriteCond %{REQUEST_URI} !^/(admin|v3|images|css|fonts|favicon\.ico|robots\.txt)
RewriteRule ^(.*).html$ /Details.cfm?ProductUrl=$1 [NC,L]
RewriteRule ^search/(.*)/$ /Results.cfm?Keywords=$1 [NC,L]
I tried \.html$ and it just redirected to the home page.
RewriteCond %{REQUEST_URI} !^/(admin|v3|images|css|fonts|favicon\.ico|robots\.txt)
RewriteRule ^(.*).html$ /Details.cfm?ProductUrl=$1 [NC,L] RewriteCond %{REQUEST_URI} !^/(admin|v3)
RewriteRule ^([^.]+)\.html$ /Details.cfm?ProductUrl=$1 [L] I think it's a problem that category1/ works and category1 doesn't.
example.co.uk/category1/ to subcat.cfm?catname=$1
example.co.uk/category1/category2 to subsubcat.cfm?secondcatname=$1
example.co.uk/category1/category2/category3/ to results.cfm?thirdcatname=$1
RewriteRule ^category1/category2/category3/([^./]+)$ /results.cfm?thirdcatname=$1
RewriteRule ^category1/category2/([^./]+)$ /results.cfm?secondcatname=$1
RewriteRule ^category1/([^./]+)$ /results.cfm?catname=$1
The Condition applies only to the rule that immediately follows it.
RewriteRule ^(images|css|fonts) - [L]