Site structure
Version 5.x > Site structure > browser access through sub-folders View modes: 
User avatar
Member
Member
craig-shepherdproject - 3/16/2011 10:27:29 AM
   
browser access through sub-folders
Seems like a simple question, but I can't find out how to do it: I need to be able to create a folder with a file in it that automatically loads when a browser hits that folder. So, for instance if a user types in "www.wordconference.org/chec", they will get a web page from that folder rather than an error message which is what happens now. In normal web programming, you'd just put an index.html or an index.php, etc file in that folder which would load automatically when the folder was accessed, but the Kentico system doesn't seem to do that.

It's a non-issue when directing people to your site through web links because you can bury whatever complicated address you want in the link. In print media, however, it is an issue. I don't want to print an ad that requires users to type in "www.wordconference.org/chec.aspx" It's messy and the .aspx extension will throw off some users. Without the ability to direct them to a particular page, though, I can't track the effectiveness of the print ad.

User avatar
Certified Developer 8
Certified Developer 8
dvanbale - 3/23/2011 1:34:22 PM
   
RE:browser access through sub-folders
Dear Craig,

What we use internally, is a create a template which redirects the user to the first child node sorted by node order and select this template for the root page.

Regards,
dvanbale

User avatar
Member
Member
craig-shepherdproject - 3/23/2011 4:22:52 PM
   
RE:browser access through sub-folders
Thank you. Unfortunately, my site was built by a company that won't let me into the template design side of things, so I'm not sure I can do what you're suggesting. Of course that may be a moot point since I'm not sure I understand how to apply a template to a folder.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/23/2011 3:06:47 PM
   
RE:browser access through sub-folders
Hello,


we would recommend you the redirection as well. You can set up in:

document Properties -> Menu -> URL redirection

or use the Random redirection web part (if you set up one URL there, it will always redirect users to that URL).


Best regards,
Helena Grulichova

User avatar
Member
Member
craig-shepherdproject - 3/23/2011 4:32:39 PM
   
RE:browser access through sub-folders
Thank you so much for your kind answer, but I'm not sure how to apply your suggestion to a folder. Your suggestion seems to be the method I was attempting initially, but I tried it again with the same result: I have created the folder, and followed your directions (document Properties -> Menu -> URL redirection)
, but it just doesn't do anything. if I type in http:www.wordconference.org/chec, it just gives me a 404 error.

The problem seems to be related to the fact that I'm dealing with a folder rather than a web page, but I can't see how to get around it.

And I can't use a web part on a folder, can I?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/24/2011 10:22:25 AM
   
RE:browser access through sub-folders
Hello,


Even the folders have a template where you can add the web parts. They are standard documents.

Regarding the menu action: Does the URL work if you paste it directly to the browser bar?


Best regards,
Helena Grulichova