I am facing a 500 error on all of my blog posts except home page, but I can still access wp-admin dashboard page. My WordPress is on subfolder (www.domain.com/magazine). This is my .htaccess
file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /magazine/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /magazine/index.php [L]
</IfModule>
# END WordPress
The problems is solved when I change my Permalinks into default. But when I change it into Pretty Permalinks then the problem came up again.
The problems occured when I activated rest-api and then deactivated that plugins.
About Rest-API plugins – they don’t touch the .htaccess file.
Do you use any Cache plugin(if yes then try to deactivate they)?
To see why you get a 500 error you need to look at the error logs on your server.
Depending on your account type these may or may not be available to you, but your hosting company will be able to see what’s happening.
500 errors can frequently occur with incorrectly configured rewrite rules contained in your “.htaccess” files, so you should probably try removing those from your folders to see if it’s the cause. Keep a backup of those files, of course, you might still need them.
If it doesn’t help try to disable all plugins and try the procedure again.