• My Web site is http://livinghopefarm.org.

    Right now, WordPress is installed at “livinghopefarm.org/blog” by my hosting service, JustHost. Also, in my general settings in WordPress, my WordPress address and my blog address are both “livinghopefarm.org/blog.”

    How do I keep my files organized but move my blog from only being viewable at “livinghopefarm.org/blog” to be able to be viewed at “livinghopefarm.org”?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Adapted from WP Codex:

    Many people want WordPress to power their site’s root (e.g. http://livinghopefarm.org) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install the WordPress files to a subdirectory, but have your blog exist in the site root.

    1. Go to the General panel.
    2. In the box for WordPress address (URL): set the address to the location of your main WordPress core files. Example: http://livinghopefarm.org/blog
    3. In the box for Blog address (URL): change the address to the root directory’s URL. Example: http://livinghopefarm.org
    4. Click Update Options. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
    5. Copy the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file.
    6. Open your root directory’s index.php file in a text editor
    7. Change the following and save the file. Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following,
    require(‘./blog/wp-blog-header.php’);
    8. Login to admin It might be http://livinghopefarm.org/blog/wp-admin/
    9. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

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

The topic ‘Move my blog’ is closed to new replies.