Force lower case URLs

RoSPA Webteam asked on March 19, 2015 15:35

We've recently released a Kentico site and in:

Site Manager > Settings > URLs and SEO

we have set "Redirect invalid case URLs to their correct versions" to force lower case: "Redirect all requests to lower case URLs".

However this doesn't seem to be having any effect. This is an issue as Google Analytics is now tracking pages separately depending on case used.

Is there any other settings or something that might conflict?

Thanks

Recent Answers


Brenden Kehren answered on March 19, 2015 16:44

Any URLs you have output through a viewer or listing control like a repeater will automatically be taken care of in the HTML markup.

If you have editable text webparts on your templates and manually link those pages using the WYSIWYG editor, the links in the HTML will be title case BUT when you navigate to them by clicking the link, they should resolve to lower case.

If you're not seeing results, I'd suggest clearing the sites cache and/or restarting the site or IIS.

0 votesVote for this answer Mark as a Correct answer

RoSPA Webteam answered on March 24, 2015 17:07

Looking at it, it seems that it only fails to work when you are logged into Kentico. I've seen this on other posts during a quick Google search, how come this happens? Is there a way for it to work when logged in, as it seems a funny bug.

0 votesVote for this answer Mark as a Correct answer

Bartlomiej Miluch answered on April 28, 2015 14:17

Also for me it does not work (both kentico 7 and 8), at least if output cache inside kentico is enabled.

Example 1: output cache disabled

http://daisy8-dk-dk-test2.sos-kd.org/stot-OS -> (always redirected) -> http://daisy8-dk-dk-test2.sos-kd.org/stot-os

Example 2: output cache enabled

http://www.sosbornebyerne.dk/frivilliG -> (first time correctly redirected) -> http://www.sosbornebyerne.dk/frivillig

Second time after in the same browser window I change the last leter (g) back to capital (G) and no redirect is done any more.

What is interesting - an option "Always use URL without trailing slash" always works properly.

0 votesVote for this answer Mark as a Correct answer

Martin Florian answered on September 30, 2015 11:39

Hi,

Thank you for bringing this to our attention. We already found the core of the issue and it is going to be fixed in version 9.

Thank you.

0 votesVote for this answer Mark as a Correct answer

Dwayne Grant answered on April 21, 2016 20:05

Hi Martin,

If partial cache is used instead of output cache, would this be a viable work around in version 8.2?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.