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

Xenforo Htaccess 403 Error

Discussion in 'Installation, Upgrade, and Import Support' started by |Jordan|, May 12, 2013.

  1. |Jordan|

    |Jordan| Active Member

    I setup a new xenforo forum and whenever i upload the .htaccess file, the entire site 403 errors. Web server is apache and xenforo is installed to the root of the subdomain.

    Any idea why this is happening and how to fix it?

    P.S. Its the default .htaccess included with xenforo.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

  3. |Jordan|

    |Jordan| Active Member

    I setup a new xenforo forum and whenever i upload the .htaccess file, the entire site 403 errors. Web server is apache and xenforo is installed to the root of the subdomain.

    Any idea why this is happening and how to fix it?

    P.S. Its the default .htaccess included with xenforo.

    Mod_rewrite is enabled and htaccess overrides are working because the previous vb forum was able to use them fine.

    Here's the vhost entry concerning htaccess:

    This is the only mention of AllowOverride in the entire vhost configuration for this vhost.
     
  4. Lycaon

    Lycaon Well-Known Member

    Maybe try redownloading the files and uploading the .htaccess again. It could be that maybe it's corrupt.
     
  5. |Jordan|

    |Jordan| Active Member

    Tried that. Still doesnt work. I deleted everything in the htaccess file and enabled each entry line by line (in each section). The thing that's breaking it is: RewriteEngine On (even with all the rewrite rules disabled)
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    What is your site URL?

    Do you have friendly URLs enabled?
     
  7. |Jordan|

    |Jordan| Active Member

  8. Brogan

    Brogan XenForo Moderator Staff Member

    I have merged both identical threads.
    Please don't post in multiple forums as it results in duplicate effort.
     
  9. |Jordan|

    |Jordan| Active Member

    I made this thread because that other guy said i should :S
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    But you say that line works in vB? That may indicate some difference in the configuration of the two sites.

    I usually only paste this for 404s, but here is my copy/paste about friendly URLs:

    Possible causes of friendly URLs not working (usually manifests as "404 not found" error on forum pages):

    1) The .htaccess file is not in place in your forum directory.

    2) Sometimes you need to specify RewriteBase in your .htaccess file (specify the name of your forum directory):

    RewriteBase /xenforo

    3) Your server doesn't have mod_rewrite installed. Consult with your host about this.

    4) Your server doesn't have AllowOverride enabled:

    http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride

    Consult with your host about this.
     

Share This Page