• My move hasn’t worked. Can someone help?

    I downloaded all my wp files (and in the theme files changed various instances of “oldurl” to “newurl”). I also changed the wp-config details to suit the new mysql connection and deleted the wp-cache folder.

    In fact the new location for the wp files (at asmallorange) is /public_html/blog1/ and the old location (at Yahoo!) had been /myname/blog1.

    I exported the old database tables to my hard drive, changed all instances of oldurl to newurl and imported the tables to the new database using phpMyAdmin through cpanel. I checked that site_url and home in the wp-options table are set to newurl/blog1.

    I have also added an index.php file in public_html as follows:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    define('WP_IN_ROOTDIR', true);
    require('./blog1/wp-blog-header.php');
    ?>

    I just get blank pages when browsing to newurl or newurl/blog1 or to any known file in newurl/blog1. There is a related Images folder in public_html, and I can browse to the images it contains (which is why this seems to me to be a wp problem).

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If wordpress in installed such that you have /public_html/blog1/wp-content etc. and you want to access WordPress at http://www.sample.com (where sample.com is your domain) then the index.php file in your root folder should read:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog1/wp-blog-header.php');
    ?>

    Thread Starter claughto

    (@claughto)

    Thanks, I’ve amended that, but I still just get blank pages.

    I guess the:
    define('WP_IN_ROOTDIR', true);
    line came from Yahoo! WebHosting where my site was hosted and my wp installation came from (see http://wordpress.org/support/topic/98767?replies=8 – where I see a moderator’s comment

    “I am hosted on Y!
    Which means you are doomed… They don’t use normal WP files for their install. And nothing ever works like on a normal server. Sorry.
    If it is not too late – find a decent host!”

    Is that my problem, that the Yahoo! non-standard installation of wp won’t work on a “normal” host?

    Has anyone successfully transferred a blog from Yahoo! to another host (and changed domain at the same time)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move to new server and new domain’ is closed to new replies.