Bug in Url Building

Last post 05-08-2008 8:18 PM by shopvisible. 17 replies.

Sort Posts:

  • Re: Bug in Url Building

    05-08-2008, 5:01 PM
    • Loading...
    • shopvisible
    • Joined on 03-23-2008, 8:49 PM
    • Posts 4
    It seems the 1st setting for allowingRestrictedChars would be the right answer, but this article pertains to IIS 6.0, do you think it will have the similar result on IIS 7?
  • Re: Bug in Url Building

    05-08-2008, 8:03 PM
    Hi,

    Depending on the requirement, you may be bale to get a way by a simple find and replace technique I used in few pages, as long as your not depending on the text that your passing via Query parameter. I assume that you need this to build the XML sitemap.

    Example.

    Public address: (Assuming the id for “Cutlery-&-Accessories” is 14)

    /Cutlery and Accessories/14/Cutlery-and-Accessories.asp

    Real address:

    /Cutlery/productList.asp?categoryid=$2

    The Regexp:

    /(.{1,})/ ([0-9]+)/ (.{1,}) (\.htm|\.html)

    Since your passing the ID to the page, there is no reason that you cannot replace “&” with “And” or a " ", you can still get the description with a DB call by ID.

    however as i said it's depending on your requirement. 

    Cheers and Good  luck

    Krish 

    Krishan Ariyawansa

    Service Hub Limited
    PO Box 8191, Symonds St, Auckland, 1150.
    Voice:+64 27 522 5971
    e-mail : krishan@servicehub.co.nz
    Web : www.servicehub.co.nz
  • Re: Bug in Url Building

    05-08-2008, 8:18 PM
    • Loading...
    • shopvisible
    • Joined on 03-23-2008, 8:49 PM
    • Posts 4
    Our CMS generates flat URLs based upon the name.  In this example, the customer did enter in Cutlery & Accessories, which we convert to Cutlery-&-Accessories.  This has worked from IIS 3 thru 6 and only now is an issue.  There must be a setting in IIS 7 to ignore the &?
Page 2 of 2 (18 items) < Previous 1 2