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 3 of 3

Thread: Redirect Deleted Product Page to Category

  1. #1
    Tom Cox is offline Senior Member
    Join Date
    Nov 2009
    Location
    Los Angeles, CA
    Posts
    104

    Default Redirect Deleted Product Page to Category

    We want to delete a few product pages for discontinued products but two of them have back links to them. Is it possible to use something like a 301 redirect to direct these deleted product pages to their previous category page?

    If this is possible, where do we put the redirect code and what does it look like?

  2. #2
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    In the <urlrewrites> section of the web.config file you could have something like:
    Code:
    <rule url="/p-2282-([\w-]*)\.aspx(?:\?(.*))?" rewrite="/showcategory.aspx?CategoryID=833" />
    where p-2282 is your productid and 833 is your categoryid
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  3. #3
    Tom Cox is offline Senior Member
    Join Date
    Nov 2009
    Location
    Los Angeles, CA
    Posts
    104

    Default

    Thank you. That sounds perfect. I'll give it a try and I'm pretty sure that will work.