Domenico |
01-03-2017 12:10 PM |
Quote:
Originally Posted by kylek
(Post 2580218)
Need some expert help please!
This is what our old .htacess redirects looked like:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^yoursitename\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ http://yoursitename.com/$1 [L,R=301]
What would be needed for redirect to https?
Thanks!
|
It so depends. Did you try changing RewriteRule ^(.*)$ http://yoursitename.com/$1 [L,R=301] to RewriteRule ^(.*)$ https://yoursitename.com/$1 [L,R=301] ?
I have
Code:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTP_HOST} ^www\.webhostingtalk\.nl$ [NC]
RewriteRule .? https://www.webhostingtalk.nl%{REQUEST_URI} [L,R=301]
And that works. :)
The forum is 100% https now. It wasn't that hard I must say. Some scripting that needed to be changed and also some hardcoded http// but that was it.
Next step, HTTP/2 but Varnish 4.x doesn't do that.
|