index2.php in root causing 404 error

Try to just use a index.html file and use <META HTTP-EQUIV=”Refresh” CONTENT=”5; URL=http://example.com/wp-content/themes/your_theme/index.php”> in your <head> section. Let’s see if the easy stuff works. edit: to be on the save side, always display a link to the index.php file with some descriptive text like “if your browser doesn’t redirect you automatically, please click here“

WordPress Auto-Redirecting on 404

WordPress doesn’t automatically suggest pages when a 404 occurs. Many themes have a 404.php template file that can effect what happens when an incorrect URL is entered. Maybe your theme has a 404 page. If you don’t want it to interfere, you could try deleting the 404.php. REVISION: OK, I understand your request now. The … Read more

Why are 404s not triggering my 404.php template?

I found that the problem was with the otherwise very useful plugin Legacy URL Forwarding. It uses the following function (abridged here) with the 404_template hook. function doUrlForwarding() { // make a $query based on the $_SERVER[‘REQUEST_URI’] // if a post is found, redirect to it if (!empty($query->post->ID)) { wp_redirect(get_permalink($query->post->ID), ‘301’ ); } } add_action(‘404_template’,’doUrlForwarding’); … Read more