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: Deleting a Topic

  1. #1
    bob12368 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    11

    Default Deleting a Topic

    I would like to delete a topic page along with it's aspx dynamic URL "t-topicname.aspx".

    I tried deleting a the topic in the admin and also forced deleted it in the DB, but a blank page can still be found when typing in the URL path. Do I need to clear the cache or is there a rewrite reference I need to delete as well.

    I'm trying to replace this page with a 301 redirect page. I know I can't create a redirect with topics, so I'm going to manually create a static page with the same page name as the topic dynamic page once I can get rid of the dynamic page.

  2. #2
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    any non-existant topic will show a blank page by design. The best way to handle this might be to create a custom rule in the web.config file that re-routes that specific topic name (remember, rules are applied top to bottom) to a custom redirect page.

  3. #3
    bob12368 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    11

    Default

    1. We added this to the URL Rewriter Rules section in the Web.config file. It needs to be placed as the first line. (because rules are applied top to bottom).
    This Rewrite Rule points the topic page to a physical page in the root directory where we are going to add the 301redirect.
    <rule url="/t-topicxxx.aspx" rewrite="/redirectpagexxx.aspx" />

    2. Uploaded the physical "redirectpagexxx.aspx" with the 301 redirect header into the root directory.


    Tested and it works perfect.