Kentico - Homepage Url

10. June 2010 22:54 by Oleg in   //  Tags:   //   Comments

 To set-up your homepage to be  accessible only through / url you need t:

  1. Use following key in <appSettings> section of your web.config:
    <add key="CMSDefaultPageURL" value="~/" />
    This prevents putting .../default.aspx in the url.
  2. Go to Site Manager -> Settings -> Web site, and set default alias path to your home page alias (e.g. "/Home")
    Also on the URLs and SEO, turn off Redirect document aliases to main URL. 
    Note - this is a slight disadvantage, because you lose the ability to benefit from this setting.
  3. In CMS Desk, go to Properties -> URLs of your Home document, and set Custom URL path to "/"
That should ensure that any request on the root or /home url will be kept at the root domain path, while still showing content of the home node. 
blog comments powered by Disqus

Webcoda, Web Development & Design, Sydney

Webcoda, Web Developers & Designers Sydney is a Sydney based Web Development company comprising a team of consultants who are experts in all aspects of Microsoft web technology from ASP.Net development to Kentico CMS & SharePoint.

Webcoda has a long history of producing outstanding results for clients large and small. We have helped companies grow from humble beginnings to multi-million dollar enterprises through technology.

We love what we do and this blog is our way of sharing info that we find interesting with the world at large. Please feel free to comment or drop us a line on +612 9370 3636

Month List

Page List