Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set back to default error page

Status
Not open for further replies.

greathope123

Programmer
Nov 1, 2011
84
GB
Hi,

Long time ago, I set my own error page in my IIS and it works.
Now, I want to set back to default error page but I forget where I did that.
I am using ASP, but the IIS seems to be IIS7.

Can you help? Thanks a lot.
 
Expand Sites on the left, and click your site. Then in the center pane, double-click "Error pages
 
Yes, I found the place by follow what you said. Thank you.

However, I don't know how to set the default error page, I tried put
%SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>404.htm
into the box but got error message: The specified file path is invalid.

What I can do?
 
Your example should read %SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>[highlight]\[/highlight]404.htm

If you click the "Set..." button, the "Root Directory Path" should be %SystemDrive%\inetpub\custerr (C:\inetpub\custerr by default, but may be different on your server), and the relative file path should be 404.htm (or whatever file you want).

Tha actual file would be physically located in the %SystemDrive%\inetpub\custerr\<LANGUAGE-TAG> folder, for example:
C:\inetpub\custerr\en-US\404.htm
 
Yes you are write, I missed a "\", thanks. However, I still got no idea where I should select and what I should put into the related boxes:

After I open the Error Pages and double click the line with 404, I got 3 Response Action choices:
Insert content from static file into the error response
Execute a URL on this site
Respond with a 302 redirect

I just cannot find what you mentioned by 'the "Set..." button' :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top