skip to Main Content

I am using WordPress, My website was working perfectly until I changed the file permission.

admin-ajax.php is showing 403 forbidden error and the rest of the file is working.

due to a 403 error, My website is completely down and now I am not able to understand what permission I have to set for this file. I have tried 777,755,644,640 but still I am getting 403 error

enter image description here

I thought let me login in admin panel and deactivate the plugin but my admin panel is showing like below image. But, I am 100% sure there is no issue with the plugin. I have deleted the htaccess file and added the new one but still same issue

enter image description here

I have added the below code in the wp-config.php file and it’s showing perfectly but if I click on any of the menus like, plugin, setting, tool, post, or pages, all the pages are showing 403 forbidden

define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );

Any idea what permission I have to set? I am using an AWS server.

2

Answers


  1. if you are using security plugin something like wordfence or ithemes Security, you need to whitelisted url in your security plugin settings.

    Login or Signup to reply.
  2. First you try to disable all of your plugin/theme from FTP or Cpanel, may be any plugin cause an issue.
    Secondly if issue not solve you can replace your .htacess file through Cpanel or ftp

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search