1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Migrating from ASP to ASP.NET without losing pagerank from backlinks

Discussion in 'C#' started by shadyfellow, Jul 22, 2011.

  1. #1
    Hello I am planning to upgrade my website from classic ASP to ASP.NET however all external sites link to my .ASP pages. I would like to maintain those backlinks Is there any solution to this problem?

    If there is a way to make a windows server interpret a page with a .asp extension as an aspx page that would be nifty.
     
    shadyfellow, Jul 22, 2011 IP
  2. radicalcoder

    radicalcoder Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your best friend according to the SEO world is 301 redirects. 301 redirects are the best way in relocating pages. Every URL that used to point to a old asp page should be replaced with a 301 (Resource permanently relocated) redirect to the new ASP.NET page.
    You can google ways of implementing redirects but this is ussually done in your .htaccess file as redirect 301 oldURL newURL
     
    radicalcoder, Jul 27, 2011 IP
  3. strike2867

    strike2867 Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    htaccess are for Apache. If you're using IIS, you can use an HttpModule. http://ravi-testingblog.blogspot.com/2009/07/how-to-create-your-own-http-module.html is a guide on how to do it. From there you can add a BeginRequest event which checks if the requested page is an ASP and redirect it accordingly. From there you can do full Url rewrites to make your pages even more SEO friendly.
     
    strike2867, Jul 31, 2011 IP