If I force https in .htaccess
Code: Select all
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If I gently force SSL
Code: Select all
RewriteCond %{HTTP_HOST} !^kites-ireland\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://kites-ireland.com/$1 [R=301,L]
Now, I'm not a programmer, but take advice from GitHub and Stackoverflow.
Also using OC for 10 yrs building up a bit of knowledge. (Oops, me anniversary is in 5 days.

My Q is, is there any fool proof (.htaccess) way to sort this? Sick and tired of trying ...

Have a wonderful weekend you lot!
Jay
NB: OC2.x 7.2php; OC4.x 8.1php