Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: 404 Custom Page redirect working

  1. #1
    tabletennisstore is offline Junior Member
    Join Date
    Feb 2009
    Posts
    21

    Default 404 Custom Page redirect working

    There are so many links out there pointing to our old store url. After we have moved to the new aspdnsf store, we set up the web.config to invoke a custom 404 error page. This does not work at all.

    For example, click this link http://www.tabletennisstore.us/AllSt...1/Default.aspx . The link will take you to web.config related error, not to the pagenotfound.aspx page.

    We used a .htaccess file for a while and it is a headache to add all the urls.

    How can I make this 404 custom page working?

  2. #2
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    did you set <customErrors mode="On" >

    404 Redirects
    http://manual.aspdotnetstorefront.co...redirects.aspx

  3. #3
    tabletennisstore is offline Junior Member
    Join Date
    Feb 2009
    Posts
    21

    Default 404

    I had set the option to ON. It did not work. I have added a defaultRedirect attribute, and that triggers the pagenotfound page now. I think defaultRedirect is necessary.

  4. #4
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, as long as the redirect property has a value with the custom Error mode set to On, everything should be fine:
    Code:
    <error statusCode="404" redirect="PageNotFound.aspx" />

  5. #5
    mmcglynn is offline Junior Member
    Join Date
    Sep 2007
    Posts
    6

    Default Same here

    Same here, this is not working. Win2003, IIS6