Board URL is in ACPI just enabled it but it didn't like it. It couldn't find the forum pages. Do I contact my host to sort this or do I edit the htaccess file myself. if that is the issue?
It's intended to remove issues with people accessing the site via www or without it, http and https.
Typically you would use rewrite rules in .htaccess to achieve that.
$_SERVER line is generally unneeded. It does do something, though it's more likely to cause issues in the future if you ever did allow non-HTTPS access.RewriteEngine On
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
Yes, especially because your rules don't cover non wwwIf URL canonicalization is enabled should we be removing code in .htacess like this?
Code:RewriteEngine On RewriteRule (.*) http://www.domain.com/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
We use essential cookies to make this site work, and optional cookies to enhance your experience.