Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1788

[3.3.x] Support Forum • Re: How to redirect all domain.com requests to www.domain.com

$
0
0
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



Viewing all articles
Browse latest Browse all 1788

Trending Articles