Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Provence 12 posts 32 karma points
    Jun 24, 2011 @ 18:14
    Jason Provence
    0

    Trailing Slash Breaking DirectoryUrls

    Umbraco v4.7

    .Net 4.0 Integrated Pipeline

    Windows Server 2008 R2 w/ IIS7.5

    I've managed to get DirectoryUrls working on my site, however it seems like adding a trailing slash to my URL gives me a 404 error.

    Example

    www.domain.com/about -- This works

    www.domain.com/about/ -- This gives me a 404

    Any ideas what I might be doing wrong or what other issue might be causing this?

  • aghy 129 posts 308 karma points
    Jun 24, 2011 @ 18:32
    aghy
    0

    Hi Jason,

    You can remove the trailing slash if you want. In the umbracoSettings.config look for:

    <addTrailingSlash>true</addTrailingSlash>

    And change it to false see if that helps.

    Ben

  • Jason Provence 12 posts 32 karma points
    Jun 24, 2011 @ 22:57
    Jason Provence
    0

    Ben, thanks so much, that has me up and running!

    Isn't Umbraco supposed to handle both types of urls by default though?

  • Devin Bost 37 posts 78 karma points c-trib
    Feb 03, 2014 @ 01:20
    Devin Bost
    0

    I have this same problem, and I haven't gotten any replies to my post. Any luck so far?

Please Sign in or register to post replies

Write your reply to:

Draft