in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Cannot use a leading .. to exit above the top directory.

Last post 07-04-2009 6:31 AM by Dick. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-02-2009 3:35 PM

    Cannot use a leading .. to exit above the top directory.

    Hello,

    What I am trying to do is to redirect default .aspx to catalog.aspx?cid=38
    The reson for doing so is that I want to the main page to be the page that holds featured products, so I have created a category with ID 38, and there you can find all the products that should be on the main page.

     in order doing so, all I needed to do is to add one simple line in the web.config:
    <rewrite url="~/default.aspx" to="~/Catalog.aspx?cid=38"/>

    It works great! Problem begins when trying to login to admin page, there I recieve error:

    Cannot use a leading .. to exit above the top directory.

     

    What can I do abou it? What rewrite url regular expression do I need to solve this issue?

    Thanks.

  • 07-04-2009 6:31 AM In reply to

    • Dick
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Posts 106
    • dashCommerce Core Team
      Moderator

    Re: Cannot use a leading .. to exit above the top directory.

    Hello,

    This could be an issue with the control src attributes. Make sure all src are: ~/controls/... and not ../control/...

     

Page 1 of 1 (2 items)