Is there something that needs to be tweaked to work in 2.2?
- Code: Select all
http://www.mysite.com/products?BRAND=ADIDAS&VENDORCODE=581 (ORIGINAL URL)
http://www.mysite.com/products/ADIDAS/581 (FRIENDLY URL)
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*/)?products/([^/]+)/([0-9]+)/?$ $1/products?BRAND=$2&VENDORCODE=$3 [PT,L]
RewriteRule ^(.*/)?products/([^/]+)/([^/]+)/([0-9]+)/?$ $1/products?BRAND=$2&VENDORCODE=$3&offset=$4 [PT,L]
RewriteRule ^(.*/)?DeptItems/([^/]+)/([0-9]+)/?$ $1/DeptItems?BRAND=$2&catCode=$3 [PT,L]
RewriteRule ^(.*/)?DeptItems/([^/]+)/([^/]+)/([0-9]+)/?$ $1/DeptItems?BRAND=$2&catCode=$3&offset=$4 [PT,L]
RewriteRule ^(.*/)?itemdetail/([^/]+)/([^/]+)/?$ $1/itemdetail?BRAND=$2&desc1=$3 [PT,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(login|myaccount|register|updateUser|accountedit|confirm|Submit|ReviewOrder|ExpressOrder|DispExpOrder|DispExpInvoice|ShowInfoExp|DispOrderInfoExp|OrderExp)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#RewriteCond %{SERVER_PORT} !^80$
#RewriteRule ^(displayCart)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^$ http://%{HTTP_HOST}/ [R=301,L]