WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Copying Site to a Subdomain (5 posts)

  1. jonahm
    Member
    Posted 2 years ago #

    I copying my site The Sydney Visitor to the subdomain new.thesydneyvisitor.com. The reason is that i want to change the design while my old site is still active.

    What I have done so far:
    Copied all the files to the sub-domain directory using ftp.
    Created a new database
    Exported the old site database and imported it to the new database
    Edited the wp-config file (in the subdomain directory) to point to the new database
    Updated the wp-options table to reflect the url change
    Run this query to update the URL change in the posts
    UPDATE wp_posts SET guid = replace(guid, 'http://www.thesydneyvisitor.com','http://www.new.thesydneyvisitor.com');

    The problem:
    After doing all these when i trying accessing the site using the subdomain url i get the following errors:

    Warning: require(/home/rapidtem/public_html/new/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/rapidtem/public_html/new/wp-settings.php on line 21

    Fatal error: require() [function.require]: Failed opening required '/home/rapidtem/public_html/new/wp-includes/load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rapidtem/public_html/new/wp-settings.php on line 21

    Kindly Assist I am stuck.

    Thanks in advance

  2. threestyler
    Member
    Posted 2 years ago #

    Subdomains are not accessed via www. prefix so the correct url would be:

    http://new.thesydneyvisitor.com

  3. jonahm
    Member
    Posted 2 years ago #

    Thanks threestyler,

    I have made the changes to url but still the same problem persists.

  4. threestyler
    Member
    Posted 2 years ago #

    Are you sure you have moved the complete WordPress installation to the new directory? As the error suggests it cannot find wp-settings.php in that location.

    Also if you already ran the above query you may also need to run it as follows:

    UPDATE wp_posts SET guid = replace(guid, 'http://www.new.thesydneyvisitor.com','http://new.thesydneyvisitor.com');

  5. jonahm
    Member
    Posted 2 years ago #

    Thanks Threestyler,

    The problem was with wp-includes some of the files were not copied.

    I really appreciate your help.

Topic Closed

This topic has been closed to new replies.

About this Topic