Set a domain name to be a default alias path in URL

   —   
We are very often asked if it’s possible to setup your site so that the URL of the home page contains only the pure domain in all circumstances - i.e. http://www.domain.com/ instead of http://www.domain.com/home/.
The answer is yes! Actually, you can achieve this aim easily by setting the following settings:

1) Default alias path: (empty) [Site Manager -> Settings -> Web site]

2) Redirect document aliases to main URL: true [Site Manager -> Settings -> URLs and SEO]

3) Use URLs with trailing slash: Always use URLs with trailing slash [Site Manager -> Settings -> URLs and SEO]

4) Choose the document which suppose to be the home page and set its Document URL path to: / [CMS Desk -> Content -> Properties -> URLs]

5) Add the following keys into the web.config file:

<add key="CMSDefaultPageURL" value="~/" />
<add key="CMSUseTrailingSlashOnlyForExtensionLess" value="true" />


Setting up the things above enforces you'll see just your domain name in the URL on the home document.
-ov-
Share this article on   LinkedIn