Closed Thread
Results 1 to 4 of 4

Thread: 403 Forbidden Error

  1. #1
    locogeek94 is offline x10Hosting Member locogeek94 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    27

    403 Forbidden Error

    When I log into my URL I get this 403 Forbidden - "You don't have permission to access on this server." But when I type in the index.html after the URL the website comes up.
    How can this be corrected?

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: 403 Forbidden Error

    Hello,

    Could you please post the contents of your .htaccess file?


  3. #3
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: 403 Forbidden Error

    Quote Originally Posted by stpvoice View Post
    Hello,

    Could you please post the contents of your .htaccess file?
    You're dead on.

    @locogeek94, your .htaccess has a line that is killing your website:

    Code:
    DirectoryIndex index.php
    Along with
    Code:
    Options -Indexes
    This means that it won't serve you any page at all if you don't have an index.php in there; you have index.html. I'd HIGHLY recommend changing the .htaccess DirectoryIndex line to this:

    Code:
    DirectoryIndex index.php index.html index.htm
    This should cause a failover system - if there's no index.php, it'll look for index.html. If there's not one, then index.htm. If that's STILL not there, try to serve an index. If Options -Indexes, then 403 forbid.

    The good news is you'll likely have an index.php, html, or htm in every folder, so this should alleviate the problem.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  4. #4
    locogeek94 is offline x10Hosting Member locogeek94 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    27

    Re: 403 Forbidden Error

    Thanks for the response.
    I did look at my .htaccess file and made the necessary correction.
    Uploaded back to the server and I am back in business again.
    Have a great week!

Closed Thread

Similar Threads

  1. 403 Forbidden Error
    By fshadows in forum Free Hosting
    Replies: 1
    Last Post: 11-22-2009, 10:59 AM
  2. 403 Forbidden Error
    By absenm in forum Free Hosting
    Replies: 0
    Last Post: 10-29-2008, 03:01 PM
  3. cgi-bin Forbidden error
    By sirduncan in forum Free Hosting
    Replies: 1
    Last Post: 09-19-2008, 04:11 PM
  4. Forbidden Error
    By Wrestlesomnia in forum Free Hosting
    Replies: 8
    Last Post: 11-04-2007, 12:43 PM
  5. Forbidden Error Help
    By gauravmm in forum Free Hosting
    Replies: 3
    Last Post: 09-19-2005, 02:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers