Welcome to WebmasterWorld Guest from 18.206.48.142

Forum Moderators: ocean10000

Message Too Old, No Replies

ISAPI Rewrite Code for 404 Page

ISAPI Rewrite Code for 404 Page

     
12:39 am on May 16, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 23, 2009
posts: 51
votes: 0


Does anybody know the code to make a 404 page within the httpd.ini file? ISAPI Rewrite is installed and I'm running on a Windows IIS server

I know the code for linux/apache for a 404 page is:

ErrorDocument 404 /404page.html

Just can't figure out what it is for Windows. Any help is greatly appreciated. Thanks!

3:09 pm on May 16, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:981
votes: 1


AFAIK ISAPI_Rewrite does not support ErrorDocument directives in httpd.ini

Configure error pages in IIS Manager instead: under "Error Pages" for the site, edit 404, set to "Execute a URL on this site" and then enter your 404 page URL eg "/404.html"

3:32 pm on May 18, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 23, 2009
posts: 51
votes: 0


Thanks for responding.

Is there any way to do it NOT via the IIS Manager. Sorry but I've got extremely limited access to the site. Thanks!

4:11 pm on May 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:981
votes: 1


Possibly: in IIS7 it can be set in the web.config file. Check with your hosting company for advice on your server setup.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members