One of the most frustrating error in WordPress is “Too Many Redirect Error”. It is also one of the trickiest error to fix for a user with limited knowledge of WordPress because there are lots of things which can be responsible for this error. Today I’ll share my own approach to share this issue.
“Error Log” is my personal favorite place to start with this kind of problem. In the Cpanel or whatever you are using go and look at the error log. To make sure you got the error logged here, visit the problem page just before checking the error log. So, the error will be on the top.
Go through the error log and see if you can find anything specific to the file path. Most common issues I found there is – “xxx/xxxx/xx – is writeable by group”. This may also cause 500 error on the front end.
To solve this– Make sure all WordPress director has 755 permission and all the PHP file got a 644 permission. You can easily check and fix this using Cpanel file manager or FTP client like ‘FileZilla’.
.htaccess file is one of the most common culprits for this kind of error. To make sure if this is the case try disabling the .htaccess file and then try to access the site. If the site work ok with out .htaccess file, then just delete the file and regenerate by updating permalinks setting.
To disable .htaccess, just rename the file to anything else, for example .htaccess_disabled. If this is not the case for you then just rename the file back to .htaccess to let it work.
Site URL Settings
To make everything is working correctly. Make sure ‘Site URL’ and ‘WordPress URL’ are identical. If your ‘Site URL’ is ‘http://example.com’ and ‘WordPress URL’ is ‘http://www.example.com’ then it is not identical. Make sure both of the fields are either ‘http://example.com’ or ‘http://www.example.com’.
If you can not access the wp-admin then you can also check it via ‘phpMyAdmin’. The fields discussed above are usually found on very first of ‘xxx_options’ table of your WordPress database.
Disable all plugin and Move to default WordPress theme
If the problem is not yet solved then get ready to get your hands dirty. Now you have to disable all the plugins. If disabling all plugin makes the error gone then enable plugin one by one and check exactly which plugin is causing the problem.
If disabling all plugin don’t help then try moving to WordPress default theme.
If no luck doing all the above, then you need to seek professional help.