{"id":68965,"date":"2016-04-16T05:57:44","date_gmt":"2016-04-16T09:57:44","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=68965"},"modified":"2018-09-21T08:22:30","modified_gmt":"2018-09-21T12:22:30","slug":"why-does-403-forbidden-error-message-appear","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/why-does-403-forbidden-error-message-appear.html","title":{"rendered":"Why does 403 Forbidden error message appear?"},"content":{"rendered":"<p><strong>403 Forbidden<\/strong> error is an HTTP status code, which means that accessing the page or resource you are trying to reach is absolutely forbidden for some reason. \r\nThis error is equivalent to a blanket &#8216;NO&#8217; by the Web server &#8211; with no further discussion allowed:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2016\/04\/403-Forbidden.1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2016\/04\/403-Forbidden.1-300x113.jpg\" alt=\"403 Forbidden.1\" width=\"300\" height=\"113\" class=\"alignnone size-medium wp-image-68966\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/403-Forbidden.1-300x113.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/403-Forbidden.1-150x56.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/403-Forbidden.1.jpg 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>There are three common causes for this error. Here they are listed from most common to least common.<\/p>\r\n<ul class=\"list\">\r\n\t<li><p><strong>Empty httpdocs directory<\/strong><\/p>\r\n\t\t<p>Make sure that your website content has been uploaded to the correct directory on your server. Do not forget to replace example.com with your own domain name.<\/p>\r\n\t\t<p>DV server: <strong>\/var\/www\/vhosts\/dv-example.com\/httpdocs\/<\/strong><\/p>\r\n\t\t<p>When you connect with your FTP user, you just need to navigate into the <strong><em>httpdocs<\/em><\/strong> directory. If this folder does not exist, feel free to create it.<\/p>\r\n\t<\/li>\r\n\t<li><p><strong>No index page<\/strong><\/p>\r\n\t\t<p>Your website home page should be called <strong>index.php<\/strong> or <strong>index.html<\/strong>.<\/p>\r\n\t\t<p>To resolve this error, upload an index page to your <strong>httpdocs<\/strong> directory.<\/p>\r\n\t\t<p>1. Rename your home page to <strong>index.html<\/strong> or <strong>index.php<\/strong>.<\/p>\r\n\t\t<p>2. Set up a redirect on the index page to your real home page. See <a target=\"_blank\" rel=\"nofollow\" href=\"https:\/\/mediatemple.net\/community\/products\/grid\/204643080\/how-do-i-redirect-my-site-using-a-htaccess-file\">How do I redirect my site using a .htaccess file?<\/a> for details.<\/p>\r\n\t\t<p>3. Set a different default home page in your <strong>.htaccess<\/strong> file. <a href=\"http:\/\/www.javascriptkit.com\/howto\/htaccess6.shtml\" target=\"_blank\" rel=\"nofollow\">Javascript Kit<\/a> has a good example.<\/p>\r\n\t<\/li>\r\n\t<li><p><strong>Permissions<\/strong><\/p>\r\n\t\t<p>A 403 Forbidden error can also be caused by incorrect ownership or permissions on your web content files and folders.<\/p>\r\n\t\t<p>Rule of thumb for correct permissions:<\/p>\r\n\t\t<p>1. Folders: 755<\/p>\r\n\t\t<p>2. Static Content: 644<\/p>\r\n\t\t<p>3. Dynamic Content: 700<\/p>\r\n\t\t\t<p>Most FTP programs allow you to change permissions on a file or folder; see your FTP software documentation for details. You can also change permissions through SSH with the help of chmod command.<\/p>\r\n\t\t<\/li>\r\n\t\t<\/ul>\t\t\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img decoding=\"async\" src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial covers main causes of <strong>403 Forbidden<\/strong> error and shows the ways to resolve the problem.<\/p>\n","protected":false},"author":67,"featured_media":68970,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1019],"tags":[2243,2245,2244],"class_list":["post-68965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting-faq","tag-403-error","tag-error-message","tag-forbidden"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/68965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=68965"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/68965\/revisions"}],"predecessor-version":[{"id":82806,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/68965\/revisions\/82806"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/68970"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=68965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=68965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=68965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}