How to Move WordPress to the Subdirectory

If you decide to use the blogging script WordPress, you can dynamically manage posts, pages and users. Installation simply requires you to specify configuration settings and upload the core files to your host. If you have initially installed WordPress in one location, such as the root of your website, you can move the script to a subdirectory. This allows you to to organize your website files and keep the core WordPress files in one location or to move your blog from the root of your website to a dedicated directory such as "blog."

Instructions

    • 1

      Log in to your WordPress dashboard in your Web browser. Type the location of the subdirectory that will contain your WordPress files into the "WordPress address (URL)" address field. If you still want visitors to access your blog from the same URL, do not change the "Site Address." Click the "Save Changes" button.

    • 2

      Launch your FTP program on your computer and enter your username, password and host's FTP address to connect to your account. Navigate to the directory that contains your base WordPress files, including "index.php."

    • 3

      Create a directory that will contain the majority of your WordPress files. You may want to name it "WordPress," "wp" or "blog" to keep your files organized. Return to the root of your website, highlight all of the WordPress files and folders, except for "index.php" and drag them into the new directory.

    • 4

      Download and open "index.php" with a text editor. Locate the following line in your index:

      require('./wp-blog-header.php');

      Change it to the new location of your WordPress core files. For example, if you're using a "WordPress" subdirectory, type:

      require('./wordpress/wp-blog-header.php');

    • 5

      Save and upload your "index.php" to its original location, which is generally the root of your website. You will now be able to access your WordPress dashboard from its new location; for example, "http://yourwebsite.com/wordpress/wp-admin/."

    • 6

      To move your entire blog to a subdirectory, such as "blog," move the index file with the rest of the WordPress files and do not edit it.

Related Searches:

References

Comments

Related Ads

Featured