Hi ,
I'm still having problems with the HTaccess redirection
the address is http://photosbyrichard.net.au this should redirect to the https://photosbyrichard.net.au
But it's not.
Here is the current htaccess file ..
IndexIgnore *
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{REQUEST_URI} !(/$|.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^.*/?$ index.php [L,QSA]
Can anyone help please? suggest a solution ?
Thank you
Richard
I have to admit I never tried it since the hosts I know do this via server side setting. But besides that I only know what @MarkRH posted.
There is also the syntax %{HTTPS} !=on according to the Apache wiki: https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
I am not sure what these lines are actually for?:
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
Maybe try to strip down to the really ZP necessary stuff and try with that.