Website migration: redirect from php to aspx

Last post 10-14-2009 8:33 PM by jww. 4 replies.

Sort Posts:

  • Website migration: redirect from php to aspx

    01-07-2008, 6:53 PM
    • Member
      104 point Member
    • GDB
    • Member since 01-06-2006, 2:35 AM
    • Posts 236

    We are building an ASP.NET website for a client who's existing website has a mix of PHP and HTML pages. Is there an effective way to manage redirects from the old site? Thanks.

  • Re: Website migration: redirect from php to aspx

    01-08-2008, 3:41 AM

    Hello,

    what do you like to redirect?

    Regards

  • Re: Website migration: redirect from php to aspx

    01-08-2008, 9:08 AM
    • Member
      104 point Member
    • GDB
    • Member since 01-06-2006, 2:35 AM
    • Posts 236

    Page requests for foo.php would need to go to foo.aspx, ditto foo1.htm to foo1.aspx.

     I supppose I could develop a comprehensive URL re-writing mechanism. Another alternative (it's not a large site) would be to create static PHP and HTML pages for each page on the old site and map them to their countertparts on the new site. Just wondering if anyone else has tackled this sort of problem before. Don't want to loose the search engine and other external link traffic. Lot of info on teh web about how to go from asp to php. Hmmm ...

  • Re: Website migration: redirect from php to aspx

    01-11-2009, 1:44 PM
    Answer
    • Member
      104 point Member
    • GDB
    • Member since 01-06-2006, 2:35 AM
    • Posts 236

    We have identified and successfully implemented a solution for this.

    Step One:
    If you are managing your own servers install Wildcard Application Mappings in IIS or ask your hosting service to do it for you.
    [see http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true]

    Step Two:
    Add the following to web.config

    <buildProviders>

    <add extension=".php" type="System.Web.Compilation.PageBuildProvider" />

    </buildProviders>

    <httpHandlers>

    <add verb="*" path="*.php" type="System.Web.UI.PageHandlerFactory" validate="True" />

    </httpHandlers>

  • Re: Website migration: redirect from php to aspx

    10-14-2009, 8:33 PM
    • Member
      2 point Member
    • jww
    • Member since 10-14-2009, 8:30 PM
    • Posts 1

    I noticed www.pangosoft.ca provides URLRedirector suite as an enterprise solution to redirect page to page, url to url. Have a look at their website: http://www.pangosoft.ca

    Filed under: , , ,
Page 1 of 1 (5 items)