locked
Problem with redirect of url="~/2006/10" RRS feed

  • Question

  • User300685930 posted

    I'm trying to convert my wordpress blog to asp.net and need to convert URL's that look like the following:

    http://peterkellner.net/2006/11/02/simplecachecodesmith/

    It seems that I can map http://peterkellner.net/2006 to something good, but as soon as I tag on the next slash, that is, something like http:/peterkellner.net/2006/11 I get the following error:

    [HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
       System.Web.Util.UrlPath.ReduceVirtualPath(String path) +694...

    An ideas how to map my full URL on the 3rd line of this post?

    Thanks
     

     

    <urlMappings enabled="true">

    <add

    url="~/2006/10"

    mappedUrl="~/Contact.aspx" >

    </add>

    Gives the error.

    Saturday, December 2, 2006 4:36 PM

Answers