Disable WordPress URL auto complete

I believe that is the redirect_canonical function hooked to template_redirect. You should be able to disable it with: remove_filter(‘template_redirect’, ‘redirect_canonical’); But you should really think about whether you want to do that as it is fairly complicated and performs some important SEO functions: Redirects incoming links to the proper URL based on the site url. … Read more

Why does WordPress redirect when I separate wp-core and wp-content?

wp-login.php is an actual file that is directly loaded up instead of using a rewrite rule. If you look at file listing in /var/www/vhosts/www.example.com/, you’ll probably will not see the wp-login.php file. But if you check /var/www/vhosts/www.example.com/wp-core/, you’ll probably find it if I understand your configuration correctly. This means your login URL is actually: http://www.example.com/wp-core/wp-login.php … Read more