Error: Wordpress redirect when trying to access wp-admin

/ bocabit / internet , tutoriales , wordpress

Yesterday I encountered an error on the blog that did not allow me to enter the administration panel (wp-admin) because it always redirected me to the Login page (wp-login) and from there to the main page. I noticed that something similar to “/wp-login.php?redirect_to=” appeared in the address bar and searching on Google I didn’t find anything, so I had to search for life.

The solution I found was pretty simple. Simply by editing the wp-config.php file and disabling the cache. Changing:

define('WP_CACHE', true); //Added by WP-Cache Manager

By:

define('WP_CACHE', false); //Added by WP-Cache Manager

As I imagined, it was some type of problem caused by the cache (Wordpress Super Cache) to the cookies, although I don’t know what or the reason.

I hope you find it useful if you also encounter this problem.