Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 karma points
    Apr 01, 2014 @ 11:57
    suzyb
    0

    Slash in Url before extension

    We have a bunch of the URLs in a site adding a slash before the extension so the URL is mypage/.aspx and not mypage.aspx. The page is accessible at the URL with the slash and my colleague is concerned the google will see these pages are duplicates so I am trying to get rid of them.

    However I cannot find what is causing it to happen. Does anyone know why umbraco would be adding slashes to these URLs and how to stop it.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2014 @ 13:20
    Jan Skovgaard
    0

    Hi Suzyb

    That's pretty weird.

    What does the setting <add key="umbracoDirectoryUrls" value="" /> say in your web.config? This should be false - so if it's true try setting it to false.

    Also check that <addTrailingSlash> is set to false in /config/umbracoSettings.config-

    Does that help?

    /Jan

  • suzyb 474 posts 932 karma points
    Apr 01, 2014 @ 16:39
    suzyb
    0

    Both are false but the site still had the issue. We inherited the site from another company so I'm not sure whether they've done something weird to the install to have this happen.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2014 @ 16:47
    Jan Skovgaard
    0

    Hi Suzyb

    What version of Umbraco is it? Perhaps you can install the 301 tracker package and make sure requests on the weird url's are permanently redirected tot he proper url so there won't be any duplicate content issues.

    /Jan

  • suzyb 474 posts 932 karma points
    Apr 01, 2014 @ 17:56
    suzyb
    0

    Site uses umbraco 4.11.10. Pretty sure I upgraded to that from an old version but can't remember which version.

    We have an IIS rewrite package we wrote that I've used to get rid of any duplicate content issues. Just a bit weird that it's happening.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 01, 2014 @ 21:12
    Jan Skovgaard
    0

    Hi Suzyb

    Yes it's indeed very weird - I'm not sure what's going on but have never seen it before.

    Hope you manage to find out how to solve it.

    /Jan

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Apr 01, 2014 @ 21:33
    Chriztian Steinmeier
    0

    Hi suzyb,

    Are there any custom rules in the UrlRewriting.config file in the /Config folder?

    Sure sounds like there's a rule in there that tries to keep the .aspx on URLs...

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft