Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have configured my site to work as SSL it is fine when used as https but if url is entered with http then error message 403.4 fobidden error message is displayed.


I have set the custom errors for this in IIS 7.0 but the page is not redirected to custom error page it is still showing the inbuild forbidden page.

How can I set the custom errors for 403.4 error.
Posted

1 solution

Have a look at my explanation of setting the 404 error page - I originally posted this with the aim of helping URL rewriting but the same process of setting a custom error page applies. (Please note I am using IIS 6 so text/dialogs may very slightly!)

http://www.codeproject.com/Tips/249466/IIS-ASP-Net-URL-Rewriting - See paragraph 3 :)

Hope this helps,

Ed :)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900