top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

When website gets 403 forbidden error and how to fix it?

+2 votes
429 views
When website gets 403 forbidden error and how to fix it?
posted May 3, 2016 by Abu Anam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

You are trying to access a page or resource which s absolutely forbidden for some reason. Following are the possible reasons or remedies to rectify it...

1) 403 Forbidden error can happen because of incorrect ownership or permissions. Remember Rule of thumb for permissions:
Folders: 755
Static Content: 644
Dynamic Content: 700

2) Missing Index Page
Home page of any site should be index.php or index.html, To resolve this error, upload an index page to your httpdocs directory.
If you already have a home page then rename your home page to index.html or index.php or Set up a redirect on the index page to your real home page.

3) Empty httpdocs directory or htdocs in apache2
Make sure that your website content has been uploaded to the correct directory on your server. Many a times we forget to replace example.com with our own domain name.

answer May 3, 2016 by Salil Agrawal
Similar Questions
+1 vote

I am using Apache Tomcat 8.0.0-RC3 Server and spring dispatcher servlet . I am getting 403 forbidden while using HTTP PUT method but HTTPGET method is working properly. I am trying to solve this with security constraint but it is giving me 409 conflict error because I am using spring dispatcher servlet and It is not working.But It is working perfect on tomcat 7 .Please help me to get rid of this .

+3 votes

which software (html/css/js..etc etc) is required to create website like www.livebooks.com or Photoshelter.com (DIY: do it yourself).
for Frontend and backend both??

+3 votes

How to provide a facebook icon on my website, which will link to my facebook page when someone clicks on it. same question for google+ profile.

...