Try following :
Code:
# Redirect non-www to wwwRewriteCond %{HTTP_HOST} !^www\. [NC]RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [L,R=301]# Redirect http to httpsRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]# Ensure domain is yourdomain.comRewriteCond %{HTTP_HOST} ^www\.forum\.com$ [NC]RewriteRule ^ - [L]
Statistics: Posted by exemplary1 — Fri Oct 11, 2024 6:38 pm