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

Friendly URLs not working

Discussion in 'Troubleshooting and Problems' started by b3nji, Jan 7, 2012.

  1. b3nji

    b3nji New Member

    I'm getting the following 404 error with Friendly URLs enabled:

    Not Found
    The requested URL /forums/main-forum.2/ was not found on this server.
    Apache/2.2.14 (Ubuntu) Server at xxxxxxxxx.com Port 80

    url: http://bit.ly/wxDbaB

    .htaccess file (located in correct directory as far as i can tell):

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The error you are getting indicates otherwise. When you upload the files there is a file named htaccess.txt. This needs to be renamed to .htaccess once on the server.
  3. b3nji

    b3nji New Member

    .htaccess IS the file on the server...
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Maybe your server doesn't have mod_rewrite installed? It's either that or there is a problem with the .htaccess file (doesn't exist, named incorrectly, etc).
  5. Mike

    Mike XenForo Developer Staff Member

    Or that the .htaccess is being ignored (AllowOverride is not set correctly in the Apache config). That's the out of the box setting for Apache.
    Jake Bunce likes this.
  6. b3nji

    b3nji New Member

    That was it - mod_rewrite was not enabled on the server.

    Thanks for the help! :)

Share This Page