Configuration / ACP
1. How do I remove index.php from the URL?
Enable Friendly URLs in the
ACP -> Options -> Search Engine Optimisation (SEO): Use Full Friendly URLs.
2. Can I change the URL structure?
With XenForo 1.2 and above, the Route Filters function can be used to change routes and URLs. Refer to
this section of the XenForo Manual for more information.
3. Can I change index.php to something else such as forum.php?
It is not possible to rename the index.php file.
4. Can I change which page is loaded when visitors access my site?
With XenForo 1.2 and above, it can be set in the
ACP -> Options -> Basic Board Information: Index Page Route.
5. What is stored in the file system?
Only avatars and attachments are stored in the file system. Everything else, including templates, is stored in the database.
6. How do I replace the XenForo header logo with my own?
Upload your logo to the server and change the image path in the
ACP -> Styles -> Style Properties -> Header and Navigation -> Settings: Header Logo Image Path.
7. How do I replace the XenForo social media (Facebook, Twitter, etc.) share logo with my own?
Upload your logo to the server and change the image path in the
ACP -> Styles -> Style Properties -> Header and Navigation -> Settings: Open Graph Logo. Due to caching it can take several weeks for the image to update on the Facebook servers. You can attempt to
force an update of the cache using the debugger.
Note that the image must be square with minimum dimensions of 200px and maximum dimensions of 350px.
8. How do I set up Facebook, Twitter, and Google integration?
Refer to
relevant section of the XenForo Manual for instructions.
9. How can I force a forum to use a particular style?
This is set in the ACP per node; simply check the
Override user style choice and select the style to be displayed.
10. How do I create a Page node?
Refer to
this resource for instructions.
11. How do I change the avatar size?
It is not possible to change the pre-defined avatar sizes (s, m, l) without editing the core files and associated templates.
12. What is the difference between Awaiting email confirmation and Awaiting email confirmation (from edit)?
Awaiting email confirmation is the user state of newly registered members who haven't yet clicked on the link sent to them via email to verify their account. Awaiting email confirmation (from edit) is the user state of existing members who subsequently change their email address and need to verify the new address is valid.
13. How does the permissions system work?
Refer to the
Permissions section of the XenForo Manual for information. There is also
this resource which explains the system in more detail, and
this resource which explains how the cumulative permissions work across multiple user groups.
14. How do I create an 'Announcements' forum which only staff members can post in?
Navigate to the node tree and click on the
Permissions link for the node you wish to change. Revoke the permissions (for example
Post new thread and
Post replies) for the Registered user group and Allow them for any staff user groups.
15. How do I create Moderators and Administrators?
Refer to the
Users section of the XenForo Manual for instructions.
16. Why do the moderator functions not appear for my Administrator account?
Adminstrators do not automatically have moderator capability, they must be explicitly made a moderator and granted the permissions, as with any other user. Refer to the
Moderators section of the XenForo Manual for more information.
17. What is the difference between a Super Administrator and an Administrator?
A Super Administrator can not be created or edited by an Administrator and always has all permissions in the ACP.
18. How do I add another Super Administrator?
Edit the
library/config.php file and add any additional users IDs, comma delimited like so:
PHP:
$config['superAdmins'] = '1, 2, 3';
Note that users must already be Administrators.
19. How can I redirect all traffic to the www or non-www version of my site?
If you are on an Apache server, this can be achieved by editing the
.htaccess file.
These are some examples of how to remove www:
Code:
RewriteCond %{HTTP_HOST} www.example.com$
RewriteRule ^(.*)$ http://example.com$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} !^example\.com$
RewriteRule ^(.*)$ http://example.com$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L,QSA]
These are some examples of how to force www:
Code:
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} !^www.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L,QSA]
Note that all servers are different and you may have to try several variations until you find one which works.
Any custom rewrite rules must come before the XenForo rewrite rules.
20. How do I force HTTPS instead of HTTP?
If you are on an Apache server, this can be achieved by adding the following to the
.htaccess file:
Code:
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Note that any custom rewrite rules must come before the XenForo rewrite rules.
If HTTPS is not being set by the server automatically, add this to the end of the
library/config.php file:
PHP:
$_SERVER['HTTPS'] = 'on';
21. How do I restrict access to admin.php or the install directory to make them more secure?
If you are on an Apache server, you can edit the
.htaccess file to password protect it or limit it to an IP address. Refer to
this guide for more information.
22. Where can I access the PHP information on the server?
Navigate to
http://www.example.com/forum/admin.php?tools/phpinfo.
23. How do I change the internal data path from the default of internal_data?
Edit the
library/config.php file and add the following:
PHP:
$config['internalDataPath'] = 'new_internal_data_path';
Change the path to suit.
Note that the path is relative to the installation path.
24. How do I change the external data path from the default of data?
Edit the
library/config.php file and add the following:
PHP:
$config['externalDataPath'] = 'new_external_data_path';
$config['externalDataUrl'] = 'new_external_data_url';
Change the paths to suit.
Note that the path is a file path (it can be relative to the installation path) and the URL is how the data will be loaded by users. These values need to point to corresponding locations.
25. How do I change the JavaScript path from the default of js?
Edit the
library/config.php file and add the following:
PHP:
$config['javaScriptUrl'] = 'new_js_url';
Change the path to suit.
Note that the path is relative to the installation URL.
26. How do I change the number of days for which the Admin Log in the ACP is retained?
Edit the
library/config.php file and add the following:
PHP:
$config['adminLogLength'] = 30;
Change the value to the number of days required. The default setting is 60 days.
27. How do I enable caching?
Refer to the
cache section of the XenForo Manual for instructions.
28. How can I change the cookie settings such as domain, prefix, and path?
Edit the
library/config.php file and add the following:
PHP:
$config['cookie'] = array(
'prefix' => 'xf_',
'path' => '/',
'domain' => ''
);
Edit the data as required. Refer to the
discussion thread in the forum for more information.
29. Where can I find a full list of switches for config.php?
Refer to
this section of the XenForo Manual.