Author Topic: Avoid landing page redirects  (Read 565 times)

fabioweb

  • Jr. Member
  • **
  • Posts: 105
Avoid landing page redirects
« 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


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7596
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Avoid landing page redirects
« Reply #1 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]
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fabioweb

  • Jr. Member
  • **
  • Posts: 105
Re: Avoid landing page redirects
« Reply #2 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 :(