301 Permanent Redirect using ASP

By StrangeWork.com: I’ve been using my search engine optimization skills on a few different sites recently. The Democrats for Monmouth County website is my current challenge. One of the main challenges I faced was converting the old ugly links over to the new SEO friendly links without losing placement in the search results.

Link conversion example
Old URL:
http://mcds2007.com/Default.asp?P=393

New URL:
http://mcds2007.com/contact

To keep your existing search engine rank, use a Permanent 301 Redirect to force the spiders to the new link. Simply add the below code to the top of your ASP script:

Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”, “/contact”

Easy as that! Google, Yahoo, and the rest of the search engines will update your site links in their index without penalizing the new link.

Popularity: 32% [?]

Tags: , ,

Related Blog Posts

3 Comments so far »

  1. Richard said

    am January 31 2008 @ 5:17 pm

    Does this mean you will keep the old file on the server as well as the new file? Is there going to be a problem with duplicate content? Just wondering…

    We are re-structuring our clients sites and was wondering which path to go. We were thinking of a ISAPI_Rewrite. Any experience with this?

  2. Brad said

    am February 1 2008 @ 10:06 am

    It’s the same file, I’m actually just using ISAPI REWRITE to create the friendly URL. You can view my post about how to create ISAPI REWRITE friendly URLs here:

    http://www.strangework.com/2007/08/09/custom-asp-urls-with-querystrings-using-isapi-rewrite/

  3. Richard said

    am February 1 2008 @ 11:13 am

    Thanks for the info!

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: