SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Multiple 404 pages
-
Sep 9, 2010, 11:40 #1
Multiple 404 pages
I am running an IIS server and I was wondering if it is possible to point a different 404 page specifically to webpages in a given folder: For example: the /archive/ directory had 10 .asp pages in it. I would like a 404 page displayed only associated to any .asp http request to that /archive/ directory/. The rest of my site has a general 404 page.
-=SunnaH=-
-
Sep 9, 2010, 12:02 #2
- Join Date
- Aug 2009
- Posts
- 122
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi, yes you can do it. Open IIS manager. Go to "Web Sites" => "you site" => "directory" - right click on the directory name you want to apply custom 404 error pages and select "Properties" from the context menu. Go to "Custom Errors" tab, click HTTP Error 404 -> Edit and select your custom file.
-
Sep 9, 2010, 12:06 #3
Thank you very much for the reference.
-=SunnaH=-
Bookmarks