Copied to clipboard

Flag this post as spam?

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


  • Sam 184 posts 209 karma points
    Nov 26, 2010 @ 09:51
    Sam
    0

    Adding trailing "/" after flat URL

    Hi Everyone,

    I've been reading the various instructions on how to take off the .aspx from the end of URL's and I have managed to do that using the method on the bottom of this page:

    http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls

    • Set the umbracoUseDirectoryUrls key on true;
    • Locate <httpModules> node and add a single attribute preCondition into the UrlRewriteModule node; it is required that the attribute is empty. Your entry should look like this: <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" preCondition="" />

    This works fine but I needed to add a trailing "/" on the end instead

    ie www.mysite.com/home/

    rather than

    www.mysite.com/home (I have this at present)

    I have read various topics but I'm still confused as to whether this is a 301 redirect thing or I have to change the rewrite rules? Any advice would be greatly appreciated. I can also see the issue with SEO and duplicate content:

    ie www.mysite.com, www.mysite.com/home, www.mysite.com/home/ and www.mysite.com/home.aspx are all the same?! How do you get round this?

    Any help or links to topics I've missed would be great. Thanks in advance :)

Please Sign in or register to post replies

Write your reply to:

Draft