1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Friendly URLs issue

Discussion in 'XenForo Questions and Support' started by matagin, Jan 22, 2014.

  1. matagin

    matagin Member

    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.
  2. Liam W

    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.

  3. matagin

    matagin 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?
  4. Liam W

    Liam W Well-Known Member

    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 ;)

    matagin likes this.
  5. matagin

    matagin Member

    Worked! Awesome! Thank you, thank you, thank you.
    Liam W likes this.
  6. Liam W

    Liam W Well-Known Member

    No worries, glad to be of assistance ;)


Share This Page