New site, same domain, php to asp.net

Last post 06-30-2008 5:38 PM by GDB. 2 replies.

Sort Posts:

  • New site, same domain, php to asp.net

    06-30-2008, 4:16 PM
    • Loading...
    • GDB
    • Joined on 01-05-2006, 9:35 PM
    • Posts 149

     We have a client who has asked us to build a new asp.net site but wants to keep the existing domain name. As their existing site is php this causes my brow to wrinkle and my nose to twitch. Any suggestions on how best to do this will be appreciated.

    An ugly kluge I am considering is using a new domain name for the new site with redirects to it from the php site. Then, after an extended period of time to allow the search engines to index the new site, shutting down the php site, bringing up the the aspx site on the original domain, and doing the redirect thing in reverse. Ugh ...

  • Re: New site, same domain, php to asp.net

    06-30-2008, 4:51 PM
    Answer
    • Loading...
    • docluv
    • Joined on 06-29-2002, 11:16 PM
    • Willow Spring NC
    • Posts 1,491
    • ASPInsiders
      TrustedFriends-MVPs

    Use URL Rewriting to handle the redirects. You could even do what MySpace.com does. They started in ColdFusion, I know the horror, and knew it would be a mess to change the extension, so they mapped the .cfm extension to the .NET filter.

    Here are some articles I have written on URL Rewriting. I would most likely use a regular expression to do the work for me.

    http://professionalaspnet.com/archive/tags/URL+Rewriting/default.aspx

  • Re: New site, same domain, php to asp.net

    06-30-2008, 5:38 PM
    • Loading...
    • GDB
    • Joined on 01-05-2006, 9:35 PM
    • Posts 149

    Thanks Chris for getting me pointed in the right direction.

     Gary

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