# 11 - Preserving Routes for SEO using the MVC Routing Engine


6/13/2008
Level: Advanced
Tags: MVC
Comments: (8)
Author:
Derik Whittaker


In this episode we are going to take a look at how to use the Routing Engine that is part of the Asp.Net MVC framework to allow us to preserve old or dead routes in order to not break external links.

We will walk though create the new route, watching it hit our new controller action then finally testing the new route to ensure they both work.  By the end of the session we will have two valid routes that both render the same view
Click here to Watch this Episode

Download (16.08 MB) (7:45) (1440x900)
Download (10.34 MB) (7:45) (960x600)

Links/Resources:


Images/Screen Shots:


Showing the Routing Information
Showing the Routing Information

Taking a look at the controller action
Taking a look at the controller action

Comments: (8)

Kevin Collins said....
Thanks Derik, this is helpful. Definitely good for SEO to preserve URLs, but it's better to 301-redirect the old URL to the new one. Otherwise you end up with duplicate pages that suck link juice but get filtered out of search results. For example this search shows one of your pages indexed under two different URLs, with one omitted for being "very similar to the 1 already displayed" http://www.google.com/search?q=site:dimecasts.net+inurl:beginner If you have time I'd love to see a new cast on how to 301 old URLs in MVC. Or even better a class that does it for multiple URLs based on regex patterns or a list of URLs from a config file :)

6/19/2008 8:25:58 AM

girlyousea said....
all house america head this usa stone deliver head german

8/9/2008 4:38:00 PM

cdarc4 said....
chiacel

11/13/2008 12:32:45 PM

link nyp tammy video said....
link nyp tammy video [URL=http://primorskosport.com/aquapark/thumb/pics/new1672.htm]link nyp tammy video[/URL] [url=http://primorskosport.com/aquapark/thumb/pics/new1672.htm]link nyp tammy video[/url] [url]http://primorskosport.com/aquapark/thumb/pics/new1672.htm[/url]

11/25/2008 1:04:33 PM

nude lita said....
nude lita [URL=http://ariesmusic.com/store/images/pics/article-1759.htm]nude lita[/URL] [url=http://ariesmusic.com/store/images/pics/article-1759.htm]nude lita[/url] [url]http://ariesmusic.com/store/images/pics/article-1759.htm[/url]

11/25/2008 1:04:47 PM

Shannon said....
Hello!,

11/27/2008 5:39:08 AM

Nancy said....
A good site, good short contents of the good work. Congratulations !, ,

11/27/2008 6:40:09 AM

Leslie said....
Keep up this great resource.,

11/27/2008 7:09:22 AM


Name: *
Email (not displayed): *
Url:
Comments: *



So, you Human...?



Submit this story to DotNetKicks