Results 1 to 3 of 3

Thread: Version 9.3 URL Rewrite

  1. #1
    Join Date
    Jul 2009
    Posts
    76

    Default Version 9.3 URL Rewrite

    Hi, We are currently in the process of upgrading our site from version ML/64 8.0.2 to 9.3. In 8.0 version, the url rewrite was specified as
    <rule url="/c-([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?" rewrite="/showcategory.aspx?CategoryID=$1&amp;SEName=$2&amp; $3"/> where on category page the page name is showcategory.aspx and categoryId is transferred as a querystring CategoryId.

    However in the latest version, page name is c-xxx-sename.aspx and there is no CategoryID querry String. We have lot of customization and xmlpackages depend on these two values. Is there a way to pass these two query string values in the new version? Any help in this regard is very appreciated.

  2. #2
    Join Date
    Jan 2007
    Posts
    98

    Default

    I had exactly the same problem- its to because they changed the urlrewriting to a built in asp.net routing mechanism.

    Off the top of my head I fixed the query string issue by making the routedquerystring method in Requestdata.cs ( ASPDNSF core project) public as opposed to private.

    The page name issue was a right PITA. I think that I ended up bodging it by testing if the page name started with a 'c-'. Sorry to be so vague but I don't have the code to hand.

  3. #3
    Join Date
    Jul 2009
    Posts
    76

    Default Version 9.3 URL Rewrite

    Thanks for the Info. Even I had noticed that the values like CategoryID was present in the route data. Since I need them in the xmlpackages as QueryString, I modified xmlpackage2 file to enter the value while populating /root/QueryString node. I took the same route as you did with regard to the page name i.e checking for "c-".

    I will consider your method of making routedQueryString public if there is further need. However, where are you using this method to access the queryString?

    Mohan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •