VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: fabioweb on May 16, 2017, 23:35:55 PM

Title: Avoid landing page redirects
Post by: fabioweb on May 16, 2017, 23:35:55 PM
hello i'm trying to performing a virtuemart site where i have this problem:
Avoid landing page redirects for the following chain of redirected URLs.

How can i fix it?

regards

Title: Re: Avoid landing page redirects
Post by: GJC Web Design on May 17, 2017, 21:21:26 PM
force https  & www in your .htaccess

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.xxxxx\.com$ [NC]
RewriteRule ^(.*)$ https://www.xxxxx.com/$1 [L,R=301]
Title: Re: Avoid landing page redirects
Post by: fabioweb on May 29, 2017, 23:45:17 PM
Thank you very much,
i wrote this

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.mgcasa\.it$ [NC]
RewriteRule ^(.*)$ https://www.mgcasa.it/$1 [L,R=301]

but i still have 4s :(