Search engine issues with migrating from php to asp.net

Last post 06-10-2008 2:30 AM by CSTruter. 2 replies.

Sort Posts:

  • Search engine issues with migrating from php to asp.net

    01-18-2007, 8:49 AM
    • Loading...
    • hessett
    • Joined on 07-11-2003, 6:21 PM
    • Posts 1

    I have the possibility of migrating a site from php to asp.net. Currently the site ranks very high in Google for various different searches. I would like some guidance on how to approach the redevelopment of the site to asp.net. It wouldn't be a straight migration it would be a total redevelopment, whilst still ensuring that the website retains it high ranking within search engines.

    Many thanks for your help.

     

  • Re: Search engine issues with migrating from php to asp.net

    01-21-2007, 10:46 AM
    • Loading...
    • pickyh3d
    • Joined on 09-17-2002, 10:19 AM
    • Virginia
    • Posts 1,955

    Once you have migrated your content over to the new site, then create a PHP algorithm that will figure out the new link that you intend to use, and redirect using a 301 header (Moved Permanently).  It's possible to even change the PHP extension to be handled as an ASP.NET page by your server, so you could code the algorithm in .NET if you choose to do that once you have finished the redevelopment of course.

    This will tell search engines that the content has moved to the ASP.NET pages, which should help in your page rankings as long as people still link to either page, and it will also keep people from getting 404 Page Not Found errors when you have migrated the system.

    Picky
  • Re: Search engine issues with migrating from php to asp.net

    06-10-2008, 2:30 AM
    • Loading...
    • CSTruter
    • Joined on 06-20-2006, 4:15 AM
    • Posts 7
    Have a look at urlMappings in ASP.net (note if you're using a hosting company have them set the php extension on IIS in the application mappings, to point to the same executables, headers etc, as the aspx extension, else mappings wont function)

    You'd have to put something like this in your web.config

    <
    urlMappings enabled="true">
       
    <add url="~/index.php" mappedUrl="~/Default.aspx" />
        <
    add url="~/articles.php" mappedUrl="~/articles/Default.aspx" />
    </urlMappings>

     

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter