Solved

URL Translation : Best way to turn News.aspx?Id=10 TO /News/Save+The+Whales.html

Posted on 2008-06-24
5
347 Views
Last Modified: 2013-11-07
What's out there for ASP.NET URL Translation?

I've already got a site coded, and the URLs are all crap and not SEO friendly (I presume)....

Haven't done this before, would love some links to products that rock and are easy to implement globally.

Awarded points go to someone who gives me more than just a link... I'd like personal experience, gotchas, and some understanding of what I'm going to have to do codewise when I have a ...

REQUEST.QUERYSTRING["ItemId"]

As well as how the ASP.NET redirector is impacted, because right now I have the 404 being used for http://www.sitename.com/UserName to redirect to the users homepage.

Using IIS6 and ASP.NET 3.5FW, VS2008, C#

TIA!
0
Comment
Question by:NauticalNonsense
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Expert Comment

by:rafayali
ID: 21859153
The simplest way is to provide url mappings in web.config file.
Under <configuration> element type this:

<urlMappings enabled="true'>
<add url="~/News/SaveTheWhales" mappedUrl="~/News.aspx?Id=1" />
</urlMappings>

The url element is the non existent page that you would like for the user to access. mappedUrl is the actual url on your file system that the request is forwarded to. What the above does is to map any requests by the user to SaveTheWhales and forward that request to ~/News.aspx?Id=1

Hope this helps. Let me know if you need anything else.
0
 
LVL 7

Author Comment

by:NauticalNonsense
ID: 21859852
No, there are 1000s of documents, spread across dozens of pages... cant to anything "manual"
0
 
LVL 7

Accepted Solution

by:
photowhiz earned 250 total points
ID: 21860042
There is a project called URLRewrite that does this on ASP.Net servers at http://www.urlrewriting.net
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question