Avoid landing page redirect
Posted: Sat Nov 11, 2017 8:20 pm
So, I'm doing some maintenance on my sites and am going crazy trying to figure this out.
Google and a redirect mapper are saying I Have 2 redirects
http://non-www to https://non-www
http://www. to https://www
My oc 2.3.0.2 site which runs full SSL and the preferred version is www.
It also runs behind a firewall with HSTS enabled
In my htaccess I have this:
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$ [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
my config.php files all list
https://www.mysite.com/whatever-link
I can't figure out what's going on to get rid of that speedtest warning
Google and a redirect mapper are saying I Have 2 redirects
http://non-www to https://non-www
http://www. to https://www
My oc 2.3.0.2 site which runs full SSL and the preferred version is www.
It also runs behind a firewall with HSTS enabled
In my htaccess I have this:
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$ [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
my config.php files all list
https://www.mysite.com/whatever-link
I can't figure out what's going on to get rid of that speedtest warning