• So a friend has a WP site hosted with 1&1.
    I’m trying to copy the site to my host (TSO), but I’m really starting to struggle.

    When I nav to the new site I get a blank page.
    Looking at page source, it show this:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );

    I have NO idea what I’ve broken, omitted or otherwise screwed up here !

    These are the steps I took to do the copy across domains:

    • Downloaded all files from original site.
    • Exported DB from original site.
    • Created new blank site on new host.
    • Uploaded all files to new site.
    • Imported DB to new site.
    • Update all DB references of oldsite.co.uk to newsite.co.uk
      (used interconnect/it utility (https://interconnectit.com/products/search-and-replace-for-wordpress-databases/)
    • updated wp-config.php on new site(DB, user, host, password)

    If anyone can help me work out my next steps … would be appreciated !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The page that loads (the page source of which you’ve pasted here) is the default index.php file in your WordPress installation. As you know, by default, when you visit a domain, it’s the index.html/index.php file that loads first… In WordPress, as this index.php is loaded, it should load the contents of the blog as well (if you had successfully migrated your site), but in your case, evidently, WordPress has not been installed in the new site – and that’s the issue here…

    I’ll suggest an easier workaround. First go to oldsite.co.uk and Export all your content to an XML file from Tools> Export in the dashboard. Then create a fresh installation in the new domain and import the XML file to the new installation. Also, don’t forget to upload your wp-content file from the old installation to the new installation. Should take only a few minutes of your time if your internet connection is fast enough. And saves a lot of technical hassle as well. 🙂

    Thread Starter netshed

    (@netshed)

    Thanks harishanker.
    Unfortunately I won’t have access to the original site until next week.
    (Was hoping that the downloaded files would give me all i needed 🙁 )

    But I’ll try then and be sure to come back and feedback how it goes.

    Are you sure that your new site has PHP enabled ? It seems that you are saying that when you visit your new hosting, that they give you a listing of the php file. Is this correct ?
    If so, contact your hosting support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Moving Hosts’ is closed to new replies.