Solved

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

Posted on 2008-06-24
5
345 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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