W3 Cache redirects to front page when I press purge all caches
I migrated my site to a new server. Everything seems to be fine, but the browser is redirected to the frontpage when I save configurations in either the "W3 Total Cache" plugin or in "Duplicate post" plugin. It does save the edits, but it´s annoing with the redirect.
For example when I press purge all caches from W3 Cache, it is redirected to
www.mysite.com/?w3tc_note=flush_all
I can´t find a solution that solves it. I tried with:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
In my wp-config.php
And with these google results: Redirecting to home-page when saving any edited code https://wordpress.org/support/topic/wordpress-5-0-beta3-redirects-to-wp-admin-edit-php-after-hitting-enter-key/
I also looked at the wp_options in the DB. But seems allright.
I tried to change the wp permanent link options in the admin settings too.
The "Duplicate post" plugin was installed after the site migration.
Topic plugin-w3-total-cache redirect migration Wordpress
Category Web