?
Solved

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

Posted on 2008-06-24
5
Medium Priority
?
349 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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