Installation and deployment
Version 7.x > Installation and deployment > Homepage urls View modes: 
User avatar
Member
Member
positivepurchasing - 10/16/2012 10:39:21 AM
   
Homepage urls
Hi

Does anyone know how to just have the domain for the homepage and disallow /default.aspx and /home.aspx?

Cheers
Paul

User avatar
Kentico Support
Kentico Support
kentico_janh - 10/16/2012 5:32:57 PM
   
RE:Homepage urls
Hello,

You need to set your Home page as the Default alias path property in the Site Manager -> Settings -> Content section and then you need to add following key to your web.config file:
<add key="CMSDefaultPageURL" value="~/" />

Best regards,
Jan Hermann

User avatar
Member
Member
positivepurchasing - 10/17/2012 3:27:34 AM
   
RE:Homepage urls
Hi Jan

I've done what you have said and it works.

I have added '/Home.aspx' to the 'Excluded URLs' so that <domain>/Home.aspx throws a 404 which is great.

Is it possible to do the same with 'Default.aspx'?

Cheers
Paul

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/17/2012 9:06:09 AM
   
RE:Homepage urls
Hi,

in version 7.0 you can also take advantage of default configuration. In the Site Manager - Settings - URLs and SEO - SEO - URLs - Default page: Use domain root.

Then only domain should be used as a home page.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
positivepurchasing - 11/14/2012 8:25:09 AM
   
RE:Homepage urls
Hi

I'm using V7 now, however when I set the Default page to 'Use domain root' neither the default.aspx nor the root / pages work.

Is this a bug?

Cheers
Paul

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/15/2012 7:21:04 AM
   
RE:Homepage urls
Hello,

This settings just redirects you to the root / of your domain for a landing page, so if you have defined the /Home.aspx page as your default alias path, then can't see this pat in the url and the main domain name is displayed instead. This settings works with the IIS7+ and with the Integrated Pipeline mode only.

Best regards,
Jan Hermann