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: URL Rewrite error V9 removed c- p-

  1. #1
    MSD is offline Member
    Join Date
    Sep 2009
    Location
    EST
    Posts
    57

    Default URL Rewrite error V9 removed c- p-

    In V9 I have my URL Rewrite setup so I remove c- , p- and am hosting on Server 2008.

    <add name="Product" url="{SEName}-{ProductID}.html" virtualPath="~/showproduct.aspx" checkPhysicalUrlAccess="false" />

    <add name="Category" url="{SEName}-{CategoryID}.aspx" virtualPath="~/showcategory.aspx" checkPhysicalUrlAccess="false" />

    Note products rewrite to html and categories to aspx

    My issue is, to do this I believe html has to be set on the server to run through the aspx engine so the page gets rendered properly. Once this happens regular html like pageerror.html needs to run through the same engine and breaks.

    If I change the html page for products to aspx the site seems to get confused whether category links are products or categories and sends my category links to product pages.

    My goal is to get static html working in the root again but I really want to keep my product and category URL's:

    racecars-166.aspx for my categories
    blue-car-mag-wheels-turbo-graphics-456.html for products

    I have decided the html vs. aspx is irrelevant but I don't want to return to p- or c-.

    Anyone have an idea if this can be fixed or is aspdnsf not going to like it without the prefix in some way.

    MSD
    Started V8 switched half way to V9 /// I need a V9 Forum

    AspDotNetStorefrontML 9.0.1.3/9.0.1.3 AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  2. #2
    chazandchaz is offline Member
    Join Date
    Jul 2006
    Posts
    70

    Smile

    A simple solution might be to process ".html" through .net and keep ".htm" out of .net. This way you can keep your static pages for errors and the like and just have them use ".htm".

    As far as getting the rewrites to work correctly in ASPDNSF I can't be much help. I have always kept the url structure unmodified.

    Chaz.

  3. #3
    MSD is offline Member
    Join Date
    Sep 2009
    Location
    EST
    Posts
    57

    Default

    I guess the next obvious question is how does the application differentiate between:

    {SEName}-{ProductID}.aspx
    {SEName}-{CategoryID}.aspx

    Can a URL be constructed this way or will the ID not know if its a Category because we pulled the c- and p- out. I think I am slowly figuring out I just can't remove the c- because the software can't differentiate the category call from a product call. I made it work with an html for products and an aspx for categories but if I want them to be both aspx it does not like it.

    MSD
    Started V8 switched half way to V9 /// I need a V9 Forum

    AspDotNetStorefrontML 9.0.1.3/9.0.1.3 AspDotNetStorefront ML 8.0.1.2/8.0.1.2