I accidently figured out a way to get rid of the .aspx in the URL. Is it a hack?
I was messing round with testing my pages and I noticed that if you have a Default.aspx page in a folder, you can redirect to the folders root and the page will load without the "Default.aspx" in the URL.
I like it and for this new project I am working on I have organized my file structure so that every page has it's own directory and inside is a Default.aspx page.
This sounds like overkill but it's actually not bad at all. Everything is still well organized and my URL's are nice and clean.
*The question is, is it this a hack and will it cause problems later on? I make sure to use only asp:hyperlinks by the way.
Thanks.
|