Sitecore - Manipulating URL's

sitecore

Solution

In your web.config, you can add `<replace find=" " mode="on" replacewith="-">` in the `<encodeNameReplacements>` node to format spaces with hyphens. Be careful though - that will mean you aren't able to use hyphens in item names anymore (as Sitecore will try and find an item with a space in it)

To lower-case your URLs you could use the rule engine, like John West describes here: Use the Sitecore Rules Engine to Control Item Names

Problem

Sitecore generates URL's based on the item names defined in the Sitecore tree, ``` http://samplewebsite/Pages/Sample Page ``` But our client is interested to lower the case of all URL's (pages/sample page), and format the blank spaces with hyphen (sample-page). How can I do this?

Original source