{"id":34409,"date":"2021-10-19T15:06:19","date_gmt":"2021-10-19T15:06:19","guid":{"rendered":"https:\/\/www.hostduplex.com\/kb\/?post_type=ht_kb&#038;p=34409"},"modified":"2021-10-19T15:06:19","modified_gmt":"2021-10-19T15:06:19","slug":"how-to-fix-a-403-forbidden-error-on-your-wordpress-site","status":"publish","type":"ht_kb","link":"https:\/\/www.hostduplex.com\/kb\/article\/how-to-fix-a-403-forbidden-error-on-your-wordpress-site\/","title":{"rendered":"How to Fix a 403 Forbidden Error on Your WordPress Site"},"content":{"rendered":"\n<p>Are you running into the Forbidden 403 error when trying to access your WordPress site? This article will walk you through some of the most common fixes so your website can be back up and running as quickly as possible.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Modify file permissions<\/h3>\n\n\n\n<p>Each folder and file on your WordPress site\u2019s server has its own unique file permissions that control who can read, write and execute them. An issue with the permissions on your WordPress site could be the cause for the 403 Forbidden error.<\/p>\n\n\n\n<p>To view and modify your site\u2019s file permissions, you\u2019ll need to connect via FTP\/SFTP. We will be using FileZilla for the steps below, but you can follow them using any FTP client.<\/p>\n\n\n\n<p> Related: <a href=\"https:\/\/www.hostduplex.com\/kb\/article\/what-is-filezilla\/\" data-type=\"URL\" data-id=\"https:\/\/www.hostduplex.com\/kb\/article\/what-is-filezilla\/\">What is FileZilla? How do I use it to connect to my account?<\/a> <\/p>\n\n\n\n<p>According to the WordPress Codex, the ideal file permissions for WordPress are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Files\u00a0 \u2013 644 or 640<\/li><li>Directories \u2013 755 or 750<\/li><li>wp-config.php \u2013 440 or 400<\/li><\/ul>\n\n\n\n<p>To set these permissions, follow the steps below:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to your account using FileZilla<\/li><li>Right click on your public_html folder, or the directory where your WordPress files are located<\/li><li>Select File Attributes&#8230;<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"710\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-1024x710.jpg\" alt=\"\" class=\"wp-image-34418\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-1024x710.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-300x208.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-768x532.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-50x35.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-60x42.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2-100x69.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/1-2.jpg 1466w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Enter a Numeric value of 750 or 755, and then check the option <em>Recurse into subdirectories<\/em>. Select <em>Apply to directories only<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2.jpg\" alt=\"\" class=\"wp-image-34419\" width=\"355\" height=\"465\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2.jpg 473w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-229x300.jpg 229w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-38x50.jpg 38w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-46x60.jpg 46w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/2-2-76x100.jpg 76w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/figure><\/div>\n\n\n\n<p>5. Repeat steps 2 and 3. Enter a Numeric value of 640 or 644. Check the option <em>Recurse into subdirectories<\/em> and select <em>Apply to files only<\/em> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2.jpg\" alt=\"\" class=\"wp-image-34420\" width=\"353\" height=\"463\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2.jpg 471w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2-229x300.jpg 229w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2-38x50.jpg 38w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2-46x60.jpg 46w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/3-2-76x100.jpg 76w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/figure><\/div>\n\n\n\n<p>6. Right click on your wp-config.php file and select File permissions&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"571\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1.jpg\" alt=\"\" class=\"wp-image-34421\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1.jpg 976w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1-300x176.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1-768x449.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1-50x29.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1-60x35.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/4-1-100x59.jpg 100w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/figure>\n\n\n\n<p>7. Enter a Numeric value of 440 or 400<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1.jpg\" alt=\"\" class=\"wp-image-34422\" width=\"364\" height=\"352\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1.jpg 485w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1-300x290.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1-50x48.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1-60x58.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/5-1-100x97.jpg 100w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/figure><\/div>\n\n\n\n<p>If the error was caused by file permissions, you should now be able to see your WordPress website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. .htaccess File<\/h3>\n\n\n\n<p>There could be an issue with your .htaccess file.This is a basic configuration file used by the Apache web server. It is used to set up redirects, restrict access to all or some of your site, etc. The best solution in this case is to delete the existing .htaccess file and forcing WordPress to generate a clean one.<strong>\u00a0<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">To delete the existing .htaccess file:<\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to your server via FTP<\/li><li>Find the .htaccess file in your root folder<\/li><li>Right click and click Download. It&#8217;s important to have a copy of the file as a backup<\/li><li>Right click and select Delete<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"709\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-1024x709.jpg\" alt=\"\" class=\"wp-image-34415\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-1024x709.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-300x208.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-768x532.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-50x35.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-60x42.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1-100x69.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/htaccess-1.jpg 1464w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Refresh your WordPress site. If the .htaccess file was indeed the issue, you should not see the 403 Forbidden error anymore.<\/p>\n\n\n\n<p>To force WordPress to generate a new .htaccess file:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log in to your WordPress dashboard<\/li><li>Go to Settings on your left sidebar, and then select Permalinks <\/li><li>Now, you just need to scroll down and click on the Save Changes button at the bottom of the page. This will force WordPress to generate the new file<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-1024x588.jpg\" alt=\"\" class=\"wp-image-34416\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-1024x588.jpg 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-300x172.jpg 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-768x441.jpg 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-50x29.jpg 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-1536x882.jpg 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-60x34.jpg 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks-100x57.jpg 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/10\/permalinks.jpg 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. Deactivate and then reactivate Your Plugins<\/h3>\n\n\n\n<p>If you recently installed a plugin or a new theme on your WordPress, snippets of bad code could be the culprit here. A few ways you can troubleshoot this is by deactivating all your plugins or switching your theme. You won\u2019t lose any data by doing this.<\/p>\n\n\n\n<p>If you can still access your administrator dashboard, you can manage your plugins by navigating to the Plugins section using the left sidebar. You can begin by disabling the ones you suspect could be causing the problem and continuosly checking your website to see if it starts working.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/FKI-ig1OgkX5zcng11y3A1AA-BcwmYCzbWYgtLS4jECJ6RQNhFps9agnZ-RXhnClMzmVzKYU_e7xd68IuqIs7YlXbUroafhUrrYGWb4Ss190HOQNpTgcypy4HIREqD194uvyMH13=s1600\" alt=\"\"\/><\/figure>\n\n\n\n<p>If you can\u2019t access your WordPress dashboard, try using FileZilla or another FTP client to connect to your server and rename your plugins folder. Then check your site again. If it works, then you will need to test each plugin one by one. Rename your plugin folder back to \u201cplugins\u201d and then rename each plugin folder inside of it, one by one, until you find the one that\u2019s causing the issue.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"> The plugins folder is typically found on \/public_html\/wp-content <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/-dDp5oFOgdTBR16zI5Hr_OGr1nb3lSLvtfnVld00lxD8Eax-AIuSD-YVvckT2hp8MRLwQJTwN62pHTfm8FG2GehiyuxPSY7h6n36VUlMs0GiMfZPHopoBTvvZGDgL6UPWnll6CEr=s1600\" alt=\"\"\/><\/figure>\n\n\n\n<p>For themes, go to Appearance \u2013&gt; Themes. There you can see the themes you have installed. Try switching the one you\u2019re currently using on your website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/IALJ6jwny7VNXyMUpbKX3wOgrSpvq7-FF1nbJ2xu8vQhwL1X9U-veD_XO1OyB8JKTbW7INibz2i4zzxlMeq7Br9DWkt1h4A5zqIXu-PtvrUeCNFSqoMEFvNP1LICTPInqfuhm2sS=s1600\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Deactivate CDN Temporarily<\/h3>\n\n\n\n<p>This error can also be caused by other services. If you\u2019re using a CDN, you can try temporarily disabling it and checking your website again. There should be an option on your dashboard to do so, but the exact process will change depending on the provider you\u2019re using.&nbsp;<\/p>\n\n\n\n<p>If you can\u2019t figure out how to or where the disabling settings are, you\u2019ll need to contact your CDN provider or browse their knowledge base.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-purple-background-color has-purple-color is-style-default\"\/>\n\n\n\n<p>If you are a Host Duplex customer and still have questions, please open a ticket in the\u00a0<a href=\"https:\/\/secure.hostduplex.com\/clientarea.php\" target=\"_blank\" rel=\"noopener\">Host Duplex client portal.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you running into the Forbidden 403 error when trying to access your WordPress site? This article will walk you through some of the most common fixes so your website can be back up and running as quickly as possible. 1. Modify file permissions Each folder and file on your&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[163],"ht-kb-tag":[182,173,183,45],"class_list":["post-34409","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress","ht_kb_tag-182","ht_kb_tag-error","ht_kb_tag-forbidden","ht_kb_tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=34409"}],"version-history":[{"count":3,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34409\/revisions"}],"predecessor-version":[{"id":34423,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34409\/revisions\/34423"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=34409"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=34409"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=34409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}