XF 1.4 Changing from http to https

New Joe

Well-known member
Say I wanted to change from http to https how would that affect the links?
Would I need some kind of redirect in place?
How easy is it?
Thanks
 
This will force HTTPS
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

or this one to remove www
Code:
RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
 
Top Bottom