HTTPD CONF CHANGES
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*[&?]|)langId=(-1)([&?].*|)$
RewriteRule ^(.*)$ $1?%1langId=-24 [R=301,NC,L]
RewriteEngine On
RewriteRule ^(.*)/en/yourStore(.*)$ $1/es/yourStore$2 [r=301,nc]
#redirect master catalog url to sales catalog url
RewriteCond %{QUERY_STRING} !^(.*)catalogId=10002(.*) [NC]
RewriteCond %{QUERY_STRING} (.*(?:^|&))catalogId=([^&]*)(.*) [NC]
RewriteRule ^(.*)$ $1?%1catalogId=10002%3 [R=301,L]
#change the domain from abc.com to www.abc.com
RewriteEngine On
RewriteCond "%{HTTP_HOST}" "!^www\." [NC]
RewriteCond "%{HTTP_HOST}" "!^$"
RewriteRule "^/?(.*)" "https://www.%{HTTP_HOST}/$1" [L,R,NE]
Comments
Post a Comment