in

dashCommerce

An ASP.NET Open Source e-Commerce Application

URL Rewritting Issue

Last post 06-11-2008 4:37 PM by theonlylawislove. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-10-2008 1:22 PM

    URL Rewritting Issue

    I think I broke URL rewriting at some point.  The site behaves fine locally and on IIS 6 but when Googlebot hits it I get exceptions that do not occur with any of the browsers I have tested.  The error only occurs on the catalog and product pages (where URL rewriting is used) and the event log contains the following error "Exception type: System.Web.HttpException     Exception message: Cannot use a leading .. to exit above the top directory."

    RedSwimmer Web Designs
  • 06-10-2008 2:14 PM In reply to

    Re: URL Rewritting Issue

    After looking through the code more it looks like the issue is related to Googlebot thinking it's in a sub-directory due to the "/catalog/" being inserted in the URL.  I also experience the same issue if I use this Google Sitemap Generator on the site http://www.xml-sitemaps.com/  Any suggestions?  I should also probably mention that I am using DashCommerce 2.2

    RedSwimmer Web Designs
  • 06-10-2008 3:25 PM In reply to

    Re: URL Rewritting Issue

    Try switching up the parameters in the rewritten url.

    I had the same problem for this..   /searchinside/234f43r34f.aspx

    I changed the url to /234f43r34f/searchinside.aspx and it worked fine.

    ~Paul
  • 06-11-2008 9:52 AM In reply to

    Re: URL Rewritting Issue

    Thank you for the suggestion.  I don't understand how switching the order of the parameters would fix the issue if it's indeed an issue with the spider thinking it's deeper in the directory structure than it really is due to the URL rewritting but at this point I'm willing to try anything.  Would you mind telling me which files you modified please?

    RedSwimmer Web Designs
  • 06-11-2008 4:37 PM In reply to

    Re: URL Rewritting Issue

    First off, I suggest using UrlRewriterNet. It has never gave me any error.
     
    What you say "what files did you modify?", do you mean, where do I add a url rewrite. If that is the case, it is in the web.config at the bottom, I forgot the section, but look for it, you'll see it. I think it is "rewrites".
    ~Paul
Page 1 of 1 (5 items)