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 Rewriter changes

  1. #1
    yakatz is offline Member
    Join Date
    Jul 2008
    Location
    Could be anywhere between 60N-28N and 77W-36E
    Posts
    84

    Question URL Rewriter changes

    In AspDotNetStorefront 7, we had this rewrite rule (and several more like it):
    Code:
    <rule url="/print-([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?" rewrite="/execpackage.aspx?XmlPackage=product.PrintVariants&amp;ProductID=$1&amp;SEName=$2&amp;$3"/>
    Is there any way to build that in the new url rewriter?
    Last edited by yakatz; 06-10-2010 at 10:15 AM.
    Using ASPDotNetStoreFront since Version 3
    Got Version 9.
    Almost ready to deploy MultiStore (final testing stages for the new FirstData gateway)
    Finally upgraded our server to 2008 R2.

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    This is already in the <routeTable> of v9.x web.config file.

    Code:
    <add name="XMLPackage" url="x-{XmlPackage}.aspx" virtualPath="~/ExecXMLPackage.ashx" checkPhysicalUrlAccess="false" />
    The above format is used to be like this in the lower versions.
    Code:
    <rule url="/x-(.*?)\.aspx(?:\?(.*))?" rewrite="/execpackage.aspx?XmlPackage=$1&amp;$2"/>
    You can test your Product.ProductVariant XMLPackage with v9.x by invoking the querystring below into your browser.

    Code:
    ExecXMLPackage.ashx?XmlPackage=product.PrintVariants&amp;ProductID=$1&amp;SEName=$2&amp;$3"/>

  3. #3
    yakatz is offline Member
    Join Date
    Jul 2008
    Location
    Could be anywhere between 60N-28N and 77W-36E
    Posts
    84

    Default

    Quote Originally Posted by AspDotNetStorefront Staff - Alfred View Post
    This is already in the <routeTable> of v9.x web.config file.

    Code:
    <add name="XMLPackage" url="x-{XmlPackage}.aspx" virtualPath="~/ExecXMLPackage.ashx" checkPhysicalUrlAccess="false" />
    What I am trying to do is run a specific XmlPackage while hiding the name of the package from the customer.

    Any way to do that (besides making a new aspx page)?
    Using ASPDotNetStoreFront since Version 3
    Got Version 9.
    Almost ready to deploy MultiStore (final testing stages for the new FirstData gateway)
    Finally upgraded our server to 2008 R2.