Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have googled and searched for this a long time but I couldn't find anything about it. My question is how do I get custom links in asp.net (like the ones in WebMatrix)?

Links now are like: http://www.yourwebsite.com/media.aspx
Links should be like: http://www.yourwebsite.com/media/

How do I get this? I really can't find anything about this. Am I looking for the wrong keywords or something?

Thanks alot.
Posted

Hi,

This is possible if your page name is default.aspx. ASP.Net allow only one page as default per folder to show with its folder name.

or you may use URL Writing, this is new tech in asp.net. visit
<a href="http://www.codeproject.com/KB/aspnet/urlrewriter.aspx">Link</a>

<a href="http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/">http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/</a>[<a href="http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/" target="_blank" title="New Window">^</a>]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900