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.
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-
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.
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.
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.
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
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.
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
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.
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
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
is working on a reply...