I’m having trouble with 404 redirection and a new theme on WordPress 2.7.
I want to set 404 behavior in my .htaccess file.
Just for testing purposes, I have the .htaccess file redirect all 403 and 404s to some other famous site, like:
The 403 redirection works perfectly. The 404 redirection does not.
What happens is that for any 404 page, WordPress draws an index.php for that page with a wp_title value of “Page not found”. (The theme does not have a 404.php and it’s not using the 404.php from the default theme.) Oh, and none of the Adsense Manager blocks show up on that page either.
How do I get the server to use .htaccess for a 404 instead of WordPress?
I thought that Apache looks at the .htaccess before WordPress is even invoked, so this whole thing is soooo confusing to me. Why can’t I specify what to do for 404 pages?
(All I want it to for a 404 is to just load the home page of my site, not show a custom page.)
Thanks for your help!
- The topic ‘Getting .htaccess to override WordPress defaults’ is closed to new replies.