Hello,
We currently have our www redirect off so the enterprise translations work, but we would like it back on for SEO purposes.
How do I properly block your network from the www redirect using the .htaccess file?
Thank you,
John
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(.*)\.(.*)\. [NC]
RewriteRule ^(.*)$ http://www\.%{HTTP_HOST}/$1 [R=301,L,NC]
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteEngine On
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} ^YOUR_DOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://www.YOUR_DOMAIN.com/$1 [L,R=301]
Users browsing this forum: No registered users and 3 guests