Solved

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

Posted on 2008-06-24
5
341 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
Comment Utility
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
Comment Utility
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
Comment Utility
There is a project called URLRewrite that does this on ASP.Net servers at http://www.urlrewriting.net
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now