WordPress.org

Forums

[resolved] Moving Folders on a Godaddy Server (6 posts)

  1. rosenzweig70
    Member
    Posted 2 years ago #

    So I have my development work completed now at http://luisbermudez.com/dev and I've attempted to move WordPress several times to the root folder.

    Each time I do end up only with these errors:

    Warning: require_once(/home/content/22/4734122/html/dev/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/22/4734122/html/dev/wp-blog-header.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required '/home/content/22/4734122/html/dev/wp-load.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/22/4734122/html/dev/wp-blog-header.php on line 12

    I've dealt with moving WordPress dozens of times before and really have never had a problem. I'm careful to follow all of the steps on this page. But it seems like something at Godaddy might be working against me on this. Anyone have some direction for me? Thanks for your help in advance.

  2. halty
    Member
    Posted 2 years ago #

    Looks like the blog redirects to the old folder. Have you changed your site_url to reflect the new location? If not then that is the reason. You can try this to fix the site_url: http://www.halty.net/wordpress-siteurl.php

  3. rosenzweig70
    Member
    Posted 2 years ago #

    So I think I've figured it out. I think Godaddy somehow adds this to the .htaccess file when you do a one-click install through their admin

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /dev/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /dev/index.php [L]
    </IfModule>

    # END WordPress

    So for me to move the site from /dev to the root I'll just need to edit out the dev/ in .htaccess. BTW, the halty script doesn't cure this. Thanks though.

  4. Pioneer Web Design
    Member
    Posted 2 years ago #

    I think Godaddy somehow adds this to the .htaccess file when you do a one-click install through their admin

    Do NOT do so, create your own host folders, assign the domain, and manually install WP (much grief before I learned this)

  5. rosenzweig70
    Member
    Posted 2 years ago #

    Amen! I knew I'd live to regret the one-click.

  6. rosenzweig70
    Member
    Posted 2 years ago #

    UPDATE.

    So it isn't a matter of me needing to edit the mod_rewrite in Godaddy's htaccess file when moving WordPress. Miraculously the htaccess file edits itself when you move folders.

    THE PROBLEM IS that it takes Godaddy's servers some time to recognize the changed htaccess file!

    Whereas you might expect it to be instantaneous, it takes 5 to 10 minutes at least. So, to recap:

    1. If you did a one click WordPress install on Godaddy you're stuck with their mod_rewrite htaccess file.

    2. If you need to MOVE WordPress to a different directory or the root, then do so as you normally would BUT BE ADVISED that the site will show only errors for around 5 to 10 minutes.

    3. Don't worry about editing the htaccess file.

Topic Closed

This topic has been closed to new replies.

About this Topic