Setanta wrote on Feb 12
th, 2021 at 6:43pm:
freediver wrote on Feb 8
th, 2021 at 6:30pm:
How do you tell if the permanent redirection is on?
I have sorted out the redirects on the PA forum and wiki, so they are all working. If I enter a URL without the s, it automatically redirects to the secure URL.
It takes human intervention in your.site.s apache conf file.
Something like:
RewriteEngine on
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
in the file that ozpol is defined in.
Edit: That would also need the apache mod_rewrite enabled.
I get a "too many redirects" error if I do this.
Code:RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?ozpolitic\.com
RewriteRule ^(.*)$ https://www.ozpolitic.com/$1 [R,L]
Using your code exactly does not cause errors, but I am not sure if it is doing anything.
Code:RewriteEngine on
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
I got this code from hostgator - have left this in place:
Code:RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
(in the public_html/.htaccess file)
I cannot see any changes in behaviour, so I am not sure how to tell if it is doing anything.