|
-
Jan 12th, 2011, 11:00 PM
#1
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.
-
Jan 12th, 2011, 11:22 PM
#2
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.
-
Jan 12th, 2011, 11:31 PM
#3
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
-
Jan 13th, 2011, 12:15 AM
#4
Re: Wikipedia type URL
Most probably .Net Fx 4.0 and SharpDevelop.
-
Jan 13th, 2011, 10:05 PM
#5
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
-
Jan 18th, 2011, 01:53 PM
#6
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
-
Jan 18th, 2011, 01:57 PM
#7
Re: Wikipedia type URL
Hey,
I like that might be the same link as I posted 
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|