Archived

This topic is now archived and is closed to further replies.

404 page and IE

4 posts in this topic

Posted · Report post

Internet Explorer is intercepting the custom 404 page that comes with the Whitehouse theme and is instead displaying the IE error page. I've added an 'ErrorDocument 404 /wp-content/themes/whitehouse/404.php' directive to the .htaccess file in the sites web root but that doesn't seem to be helping. How do I get the themed 404 page to display in all browsers?

Share this post


Link to post
Share on other sites

Posted · Report post

depends on file structure. In most situations I've seen; IE will display the correct page. more details would be needed about your htaccess and file structure to figure this one out...

Share this post


Link to post
Share on other sites

Posted · Report post

Here's my htaccess file: # Start with some permanent redirects RewriteEngine On Redirect 301 /piano_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /early_childhood_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /violin_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /voice_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers # Force IE to use our 404 page #ErrorDocument 404 /404.php ErrorDocument 200 /wp-content/themes/whitehouse/404.php #ErrorDocument 404 /index.php?error=404 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress By changing the ErrorDocument to 200 from 404 I was able to force the error page to properly display in IE. With the declaration set to 404, IE intercepts the 404.php and displays its less than useful MSN page.

Share this post


Link to post
Share on other sites

Posted · Report post

The path to the theme provided 404 page is wp-content/themes/whitehouse/404.php, so my htaccess file looks like this: # Start with some permanent redirects RewriteEngine On Redirect 301 /piano_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /early_childhood_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /violin_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers Redirect 301 /voice_teachers.html http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers'>http://manhattanareamusicteachers.org/teachers # Force IE to use our 404 page #ErrorDocument 404 /404.php ErrorDocument 200 /wp-content/themes/whitehouse/404.php #ErrorDocument 404 /index.php?error=404 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress I can get the 404 page to appear in IE by setting the ErrorDocument declaration to 200 instead of 404.

Share this post


Link to post
Share on other sites