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

Thread: Where is the SENAME / URL string stored in the database

  1. #1
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default Where is the SENAME / URL string stored in the database

    If I have the name of an item as, "Item One", the url is something like //p-320-511-item-one.aspx. If I change it to, "Item One Super Deluxe", it changes the URL to //p-320-511-item-one-super-deluxe.aspx.

    After that change, the old URL still works.


    My question is, where is the old url stored in the database? It must keep track of old urls in a table somewhere that point back to the current one....

  2. #2
    suedeapple is offline Member
    Join Date
    Aug 2010
    Posts
    30

    Default

    The old sename value isnt stored in the DB.

    The clever stuff, works, as the ID is the same

    SF, will 301 redirect any old urls you may have. Perfect for SEO purposes!

  3. #3
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default

    Ok, so how does it know what to redirect? It has to store that some place.

    I'm looking to stack the deck and have my list of urls from the old site 301 to this new ones on this site.

    Any thoughts?


    Quote Originally Posted by suedeapple View Post
    The old sename value isnt stored in the DB.

    The clever stuff, works, as the ID is the same

    SF, will 301 redirect any old urls you may have. Perfect for SEO purposes!

  4. #4
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    It's based on the ProductID.

    e.g. - in the example you gave, any of the following would work (i.e. all get 301'd to the same place) :-

    //p-320-511-item-two.aspx
    //p-320-test.aspx
    //p-320-999-another-test.aspx
    //p-320-BFG-has-all-the-answers.aspx
    //p-320-pretty-much-anything-you-like-can-be-here.aspx



    TTFN

    BFG

  5. #5
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default

    Cool. But, how does it know to do that? That is my question... Is there a file somewhere that does these 301s?

    Quote Originally Posted by BFG 9000 View Post
    It's based on the ProductID.

    e.g. - in the example you gave, any of the following would work (i.e. all get 301'd to the same place) :-

    //p-320-511-item-two.aspx
    //p-320-test.aspx
    //p-320-999-another-test.aspx
    //p-320-BFG-has-all-the-answers.aspx
    //p-320-pretty-much-anything-you-like-can-be-here.aspx



    TTFN

    BFG

  6. #6
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    No - "It's based on the ProductID" - the number after p-


    TTFN

    BFG

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

    Default

    It's handled by the <urlrewrites> section in the web.config file, more specifically this line:

    <rule url="/p-([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?" rewrite="/showproduct.aspx?ProductID=$1&amp;SEName=$2&amp;$3 " />
    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!