• Welcome to XF2 Addons. All the XF2 addons located in the Resources area are available for download once you upgrade your account to Premium membership. In addition, Premium members will get technical support. Premium membership costs only $35.00 USD a year. Once the year has expired you can continue to use the installed addons on your forum as long as you like.

.htaccess setup


Andy

Administrator
Enable board URL canonicalization

If you use "www" in your URL, it will always be forced if omitted.

If you don't use "www" in your URL, it will always be removed if manually added.

5638
 

Andy

Administrator
Use Full friendly URLs

Enable this feature to remove the "index.php" part of the URL.

5639
 

Andy

Administrator
Rename htaccess.txt

By default XenForo comes with the htaccess.txt file named so it has no effect. You need rename the file as follows:

htaccess.txt

to

.htaccess
 

Andy

Administrator
Forum installed in a directory

By default your forum can be accesses with HTTP or HTTPS in the URL.

Code:
https://www.domain.com
http://domain.com
To always force HTTPS you will want add this to your .htaccess file located in the web root:

Code:
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 

Andy

Administrator
Forum installed in the web root

By default your forum can be accesses with HTTP or HTTPS in the URL.

Code:
https://www.domain.com
http://domain.com
To always force HTTPS you will want add this to your .htaccess file located in the web root:

pic001.jpg


Code:
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
Top