-
Wikipedia type URL
Hello,
It's been a long time I did any web development, and I feel I need to brush up few things.
I may have known this before but can't seem to recall it right now. Until now, a typical URL for accessing a page would look like this (to me atleast):
http://domainname.com/<foldername>/page.aspx
If you look at any wikipedia page, it would be:
http://en.wikipedia.org/wiki/ASP.NET
If I start working now, I would end up with something like:
http://mysite.com/<some_folder_or_not>/aspnet.aspx
How'd you achieve that wiki style URL effect in ASP.Net?
Thank you.
-
Re: Wikipedia type URL
I believe the answer lies in URL rewriting. Found this example.
I have yet to try it though.
Any more ides/thoughts/sample would be much appreciated.
-
Re: Wikipedia type URL
Hey,
Which version of ASP.Net are you using?
I think URL Rewriting, or rather Routing, is definitely what you are after. Depending on which version of ASP.Net you are using, this will either be built in (.Net 4.0), or provided through another application, or IIS.
Gary
-
Re: Wikipedia type URL
Most probably .Net Fx 4.0 and SharpDevelop.
-
Re: Wikipedia type URL
In which case, you might want to take a loop at the following:
http://weblogs.asp.net/scottgu/archi...-0-series.aspx
Gary
-
Re: Wikipedia type URL
Also, ASP.NET 4.0 supports URL ROUTING (which is what MVC uses to create SEO friendly URLs).
http://weblogs.asp.net/scottgu/archi...-0-series.aspx
-
Re: Wikipedia type URL
Hey,
I like that might be the same link as I posted :p
Gary