Unwanted 404 redirect to home page
-
When somebody tries to access a non-existent page from the main site it redirects to the home page of the subsite.
Example:
example.com/nonexistent-page
redirects to
example.com/es
I had a redirect for a while in the 404 page of
example.com
:
<?php wp_redirect( '//surdelsur.com/es/', 301 ); exit; ?>
Then I realized that was a very bad idea and I deleted the codeHowever wordpress repeats the behaviour.
How can I go back to normal
example.com/nonexistent-page
=>404.php
Thanks in advance
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Unwanted 404 redirect to home page’ is closed to new replies.