{"id":2273,"date":"2007-04-27T00:23:46","date_gmt":"2007-04-26T18:53:46","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/"},"modified":"2026-10-12T15:57:30","modified_gmt":"2026-10-12T10:27:30","slug":"errors-with-htaccess-site-down-with-403-forbidden-errors","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/","title":{"rendered":"How to Fix 403 Forbidden Error in WordPress and .htaccess (2026)"},"content":{"rendered":"<p>In April 2007, while travelling between cities, I checked my site and found a <strong>403 forbidden error<\/strong> on every page. My <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/11\/track-web-host-uptime-by-hourly-traffic-statistics\/\">hourly statistics<\/a> showed the site had been down for 15 hours. My host, Dreamhost, had emailed to say Googlebot was overloading the server and they had blocked it in .htaccess, but the rule took down the whole site. Here&#8217;s how I fixed it then, and a full checklist for fixing 403 errors in 2026.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-64700\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error-1024x538.webp\" alt=\"Fix 403 forbidden error\" width=\"1024\" height=\"538\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error-768x403.webp 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/fix-403-forbidden-error.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> A 403 Forbidden error means the server understood the request but refuses access. On WordPress the usual causes are a bad .htaccess rule, wrong file permissions (folders should be 755, files 644), a security plugin or firewall blocking your IP, or a CDN rule. Rename .htaccess to test, reset permissions, and check your security and CDN settings.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6accd1b58a029\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6accd1b58a029\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#How_I_fixed_my_htaccess_403_error_in_2007\" >How I fixed my .htaccess 403 error in 2007<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#How_to_fix_a_403_forbidden_error\" >How to fix a 403 forbidden error<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#1_Test_your_htaccess_file\" >1. Test your .htaccess file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#2_Fix_file_permissions\" >2. Fix file permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#3_Check_security_plugins\" >3. Check security plugins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#4_Check_your_firewall_or_CDN\" >4. Check your firewall or CDN<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#5_Missing_index_file\" >5. Missing index file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#6_Ask_your_host\" >6. Ask your host<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#403_vs_other_errors\" >403 vs other errors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#Can_a_403_error_hurt_SEO\" >Can a 403 error hurt SEO?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#Why_do_I_get_403_only_in_WordPress_admin\" >Why do I get 403 only in WordPress admin?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/04\/errors-with-htaccess-site-down-with-403-forbidden-errors\/#Does_clearing_the_cache_fix_403_errors\" >Does clearing the cache fix 403 errors?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_I_fixed_my_htaccess_403_error_in_2007\"><\/span>How I fixed my .htaccess 403 error in 2007<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With the site and WordPress admin both down, I downloaded FileZilla on the computer I was using away from home and connected to my hosting. The .htaccess file didn&#8217;t show at first because it&#8217;s hidden, so I enabled showing hidden files. Inside were deny rules, including one blocking the 66.249 IP range Googlebot uses, and the misconfiguration was blocking every visitor. I had never edited .htaccess myself, so I cleared those lines, uploaded the file and the site came back instantly. Dreamhost later apologised for the error.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_fix_a_403_forbidden_error\"><\/span>How to fix a 403 forbidden error<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_Test_your_htaccess_file\"><\/span>1. Test your .htaccess file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Connect via your host&#8217;s File Manager or FTP and enable hidden files.<\/li>\n<li>Rename .htaccess to .htaccess-old and reload your site.<\/li>\n<li>If it works, go to Settings &gt; Permalinks in WordPress and click Save to create a fresh .htaccess, then re-add any custom rules one by one.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"2_Fix_file_permissions\"><\/span>2. Fix file permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Folders should normally be 755 and files 644; wp-config.php can be 440 or 600. Your host&#8217;s File Manager or support can reset them.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Check_security_plugins\"><\/span>3. Check security plugins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Wordfence, Solid Security and similar plugins can block your IP or country. Temporarily disable them by renaming their folder in wp-content\/plugins.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Check_your_firewall_or_CDN\"><\/span>4. Check your firewall or CDN<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Cloudflare, Sucuri or your host&#8217;s firewall may block your IP, country or user agent. Review firewall events and allow your IP.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Missing_index_file\"><\/span>5. Missing index file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If directory browsing is off and a folder has no index.php or index.html, the server returns 403.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Ask_your_host\"><\/span>6. Ask your host<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Server-level rules (ModSecurity, bot blocks) are often set by the host. As I found in 2007, sometimes the fix is on their side.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"403_vs_other_errors\"><\/span>403 vs other errors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>401:<\/strong> authentication required (wrong password on a protected folder; see <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2009\/07\/password-protect-directory-with-htaccess\/\">password protecting a directory with .htaccess<\/a>).<\/li>\n<li><strong>404:<\/strong> page not found. <strong>410:<\/strong> <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2014\/11\/http-410-error-pages-htaccess\/\">page gone permanently<\/a>.<\/li>\n<li><strong>500:<\/strong> internal server error, often a broken .htaccess too. Here&#8217;s <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/12\/site-down-36-hours-how-i-fixed-internal-server-errors\/\">how I fixed internal server errors<\/a>.<\/li>\n<\/ul>\n<p><em>Note: this is based on my experience; if you&#8217;re unsure about editing server files, ask your host&#8217;s support.<\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Can_a_403_error_hurt_SEO\"><\/span>Can a 403 error hurt SEO?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Short outages are fine, but if Googlebot gets 403 errors for days, pages can drop from search results.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_do_I_get_403_only_in_WordPress_admin\"><\/span>Why do I get 403 only in WordPress admin?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Usually a security plugin, ModSecurity rule or IP restriction on wp-admin.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_clearing_the_cache_fix_403_errors\"><\/span>Does clearing the cache fix 403 errors?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Sometimes, if a cached error page is being served. Clear your browser, plugin and CDN caches.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In April 2007, while travelling between cities, I checked my site and found a 403 forbidden error on every page&#8230;.<\/p>\n","protected":false},"author":4,"featured_media":64700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6,25,36],"tags":[17],"class_list":["post-2273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-domain-hosting","category-about","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":2,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":64702,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/2273\/revisions\/64702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/64700"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}