Aug28Written by:slhilbert
8/28/2008 3:18 PM 
Here is a quick tip to display one of those cool pages to people when they either try to get to a page on your site that doesn't exist or when something happens and an error occurs on your site.
- Open up your web.config file
- Locate the line that starts wtih
- <customErrors
- Set the mode equal to "On"
- Then create another attribute in the tag labeled "defaultRedirect="URLOfErrorPage"
- The tag will end up looking something like this
Note: This only works for pages ending in aspx, for pages ending in something else you will need to either configure IIS or see if your web host provider offers the ability to configure custom error pages.
Or you can check out this great article by SEABlick Consulting regarding 301 redirects which you can easily use to setup 404 redirects http://seablick.com/blog/articletype/articleview/articleid/114/understanding-301-redirects.aspx
2 comment(s) so far...
Re: Dotnetnuke Redirection for non-existing ASPX Pages.
Thanks but if you are hosting multple portals all with 1 web.config, how does that solution work? By BT on
10/19/2008 8:18 PM
|
Re: Dotnetnuke Redirection for non-existing ASPX Pages.
You will need to follow the Seablick.com solution I posted for al types of pages. By Stuart on
10/19/2008 8:23 PM
|