in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Rewriter Errors with Store in SubFolder

Last post 02-24-2009 5:56 AM by Joseph Marino. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-23-2009 2:30 PM

    Rewriter Errors with Store in SubFolder

    Hello,

    I have an existing club site which I wanted to  add eCommerce to. I am using VWD 2008, ASP2.0 and  MS SQL 2005 on softsys hosting. The site works great. I have set this up with dC admin and all application folders  as sub folders from root. The "store" application pages are in a subfolder named "store". This is an up and running web site with large membership already registered. I integrated the dC database into my club DB and the admin part is up and running including all my registered membership. I am able to create catorgories and products. When I go to the store default page I don't get any errors (status code 200) however the catorgory and home rewriter links error out with 404 codes when triggered from the navigation. How do I figure out what is wrong. It looks like the rewriter is not working or configured properly. I have tried all the possible combinations in the root web config see below.

    Help Joe

    <!-- start Intelligencia.UrlRewriter settings -->

    <rewriter>

    <!-- When changing these rewrites make sure that you sync them with rewriteUrlTemplate in the appSettings section. -->

    <rewrite url="~/Product-(.+)_(\d+).aspx" to="product.aspx?pid=$2"/>

    <rewrite url="~/Catalog-(.+)_(\d+).aspx$" to="catalog.aspx?cid=$2"/>

    <rewrite url="~/Catalog-(.+)_(\d+).aspx\?(.+)" to="catalog.aspx?cid=$2&amp;$3"/>

    <rewrite url="~/Page-(.+)_(\d+).aspx" to="default.aspx?pageId=$2"/>

    </rewriter>

    <!-- end Intelligencia.UrlRewriter settings -->

     

    Joe
  • 02-23-2009 3:41 PM In reply to

    Re: Rewriter Errors with Store in SubFolder

    Maybe try the following (Note the "~/" in the 'to' attribute)

    <!-- start Intelligencia.UrlRewriter settings -->

    <rewriter>

    <!-- When changing these rewrites make sure that you sync them with rewriteUrlTemplate in the appSettings section. -->

    <rewrite url="~/Product-(.+)_(\d+).aspx" to="~/product.aspx?pid=$2"/>

    <rewrite url="~/Catalog-(.+)_(\d+).aspx$" to="~/catalog.aspx?cid=$2"/>

    <rewrite url="~/Catalog-(.+)_(\d+).aspx\?(.+)" to="~/catalog.aspx?cid=$2&amp;$3"/>

    <rewrite url="~/Page-(.+)_(\d+).aspx" to="~/default.aspx?pageId=$2"/>

    </rewriter>

    <!-- end Intelligencia.UrlRewriter settings -->

  • 02-24-2009 5:56 AM In reply to

    Re: Rewriter Errors with Store in SubFolder

    Problem solved. Forgot to update the "HTTP Modules" section in webconfig.  Example rewrte rule works fine.

    <rewrite url="~/Catalog-(.+)_(\d+).aspx$" to="~/Store/catalog.aspx?cid=$2"/>

      Joe

     

    Joe
Page 1 of 1 (3 items)