Upgrading Wordpress followed by 403 Forbidden Error


I was manually upgrading Wordpress using FTP and after I was done I got this messages.

403 Forbidden
The website’s configuration prevents you from accessing this page

The only thing I did outside of the Wordpress folder is that I, by mistake, changed the .htaccess file name thinking it was that of Wordpress and then I returned it again. Could this be the issue or is there another possibility?

I have checked your current .htaccess file, but there are lines in it which prevent access to all pages on your website.

Specifically these rules are causing the problem:

 Apache 2.2
<IfModule !mod_authz_core.c>
	Order Deny,Allow
	Deny from all

# Apache 2.4
<IfModule mod_authz_core.c>
	Require all denied

The default Wordpress rules are missing as well.

Could you try merging both .htaccess files you have now? That might solve the issue. If not, you could delete the section above from the file instead.

Thanks that did help to make my website run again. But I guess I will have to create a new cleaned copy as the automatic wordpress upgrade fail caused problems to the files of the website and the front-end and back-end are neither displays as they should. Thanks again for the fast reply :slight_smile: