XF 2.0 Enable board URL canonicalization

I 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.
 
So I take it to enable it in options is better option than in htaccess?

Does this option in config.php do something or it needs to be removed
"$_SERVER['HTTPS'] = 'on';"

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.
 
It's certainly simpler than .htaccess, but it doesn't really do anything particularly different.

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.
 
If 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]
 
Back
Top Bottom