Forum Moderators: open

Message Too Old, No Replies

ISAPI Rewrite Code for 404 Page

ISAPI Rewrite Code for 404 Page

         

whyyi

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

10+ Year Member



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!

mattur

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

WebmasterWorld Senior Member 10+ Year Member



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"

whyyi

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

10+ Year Member



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!

mattur

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

WebmasterWorld Senior Member 10+ Year Member



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