Hello
I want to redirect all pages from http to https:
I tried this:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.test.sps-forum.de/$1 [R=301,L]
when I delete the "s" from "https" from a subforum e.g.
https://www.test.sps-forum.de/simatic it will not redirect!
so I can view both pages:
http://www.test.sps-forum.de/simatic (please open this URL and delete the "s")
https://www.test.sps-forum.de/simatic
only in subforums it will not redirect the pages
I also tried this:
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
and this:
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
all same..
When you open this link it will not redirect to https:
http://www.test.sps-forum.de/sew-eur...uswertung.html
edit:
fixxed,
I had to activate"Force SSL" from my hoster...