Forum Moderators: coopster & phranque

Message Too Old, No Replies

Page not found

Help

         

circuitjump

8:34 pm on May 16, 2001 (gmt 0)

10+ Year Member



Hi all,
I want to know if there is a way that I can make a page not found for my site in ASP. Kinda like the .htaccess script for unix servers.

thanks

Air

10:44 pm on May 16, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well I didn't really know but it looks easy:


Note: IIS version 4 and up support customizable error messages.

Customizing 404 errors in IIS is surprisingly easy if you have access to the server. Go into Properties for the WWW service. Go to the Custom Errors tab. Find the listing for 404 and replace the default document with your own creation. That's all!

If you're using an ISP running IIS, you'll have to ask them to change this information for you. Just send them the URL of your 404 page, and ask them to set it as your custom 404 handler.

Got that from here: [plinko.net...]

JuniorHarris

1:50 pm on May 21, 2001 (gmt 0)

10+ Year Member



Note:

If replacing with a custom 404 ASP script (not just HTML), be sure not to use the browse feature in MMC to select the script, but rather use the URL option (i.e. '/asp/404error.asp'). The browse feature causes the [asp] document to be returned directly to the client, rather than the server processing the script. (I learned that the hard way...so did my host provider).

Xoc

3:52 pm on May 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might also see the 404 handler mentioned in this article: [webmasterworld.com ]. This page shows a screen shot of exactly the dialog (in IIS 5.0) that you want to change: [xoc.net ]. There is a similar dialog in IIS 4.0.

JuniorHarris

2:10 am on May 27, 2001 (gmt 0)

10+ Year Member



That's the dialog screen! Very nice article... a great example!~ I wish I had found that before we had our problems...plus it would have saved me some typing, as I could have just simply posted the link!~ ;)