Site structure
Version 4.x > Site structure > Creating folders with default aspx page View modes: 
User avatar
Member
Member
ko_chin-earthlink - 7/5/2009 8:01:04 PM
   
Creating folders with default aspx page
Hello all:

I haven't been able to figure this out, but if I had a url like:

www.site.com/folder/default.aspx

If I try to access this page by using www.site.com/folder I just get a 404 error. I've taken the page off from displaying in the menu/nav. I would like to send these 'easy' url's to some users only (which is why its not on the menu).

Alternatively I'd be just as happy if I could use:

www.site.com/folder-second

and have that url redirect to www.site.com/folder/default.aspx

This seems like it should be so easy but I can't seem to figure this out in Kentico. Appreciate any help.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 7/11/2009 2:03:28 PM
   
RE:Creating folders with default aspx page
Hello,

You can create folder with name 'folder-second' in root of project folder (in filesystem). Then you will need to put 'default.aspx' file into this folder and into this file write custom code that will redirect user to 'www.site.com/folder/default.aspx' url on page load.

Best Regards,

Martin Dobsicek