XF 1.2 Friendly URLs issue

Xenforo version: 1.2.4
Web server: Open LiteSpeed version 1.2.8

Xenforo installed in the /forums directory of my web server.

I am having an issue where I enable Friendly URLs and it works but it adds an extra /forums to my URL so when I click forums in the top menu or any forum sections, I see this.


In the ACP, I have Board URL set to: http://mydomain.com/forums

Rewrite rules:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ /forums/index.php [NC,L]
I know it adds the extra /forums because of the rewrite rule but if I just have /index.php it redirects me to the root non-Xenforo home page index.php which lives at http://mydomain.com. So if I am in my forums and click anything or try to go to http://mydomain.com/forums/announcements.2/ it redirects me to my non-Xenforo home page.

Maybe I should have named my folder /community instead.

Liam W

Well-known member
This is normal.

The route is after the directory name, and the route for the forums is forums. So, if XenForo is installed in /forums, you will get forums/forums.


Liam W

Well-known member
Crap ok thanks. Do I need to re-install if I want to move it to /community or can I just make some changes?
Just move the files over.

Actually, it's even easier. Just change the URL in the settings, and then rename the forums directory to community, and setup a redirect for the /forums to redirect to /community instead.

Job done ;)