ASPX templates
Version 5.x > ASPX templates > Default Page of a subdirectory View modes: 
User avatar
Member
Member
srizzetto-microgate - 6/29/2010 8:55:18 AM
   
Default Page of a subdirectory
I'm developing a site for a company that have more branches

I created under my tree a subdirectory (that obviusly it isn't a physical folder) and I want to assign a default page.

Eg. if I write http://www.mydomain.com/branch1 I want to show a default page without to write http://www.mydomain.com/branch1/default.aspx o http://www.mydomain.com/branch1/home.aspx

I try to assign the folder a template and fill the content, but when I call http://www.mydomain.com/branch1 or http://www.mydomain.com/branch1/ I receive a 404

Also if I create under the folder a page called default, it doesn't works.
IIS is set to have default document to "default.aspx"

thank you

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/30/2010 3:27:10 AM
   
RE:Default Page of a subdirectory
Hi,

At first, you need to set the Extension less URLs, so you will be able to access the page without extension (.aspx).

You may also need to set the Trailing slash setting or to use it just for extension less urls.

Then, underneath the node, you will create a document named "default". After this, select the parent document, go to the Properties tab -> Menu section and set the URL redirection field to redirect to the default document you have just created under this node.

Best regards,
Juraj Ondrus