The process to move your WordPress & Installed Theme into the root directory after you have setted up the shop or site is as follows:
- Install WordPress and the Theme of your choice in a sub location of your domain (we will use /temp in our examples). It looks like that (http://www.yourdomain.com/temp)
- If you think your installation is ready to go live – Go to the General panel.
- Leave the box for WordPress address (URL): like it is. Example: http://yourdomain.com/temp
- In the box for Site address (URL): change the address to the root directory’s URL. Example: http://yourdomain.com
- Click Save Changes. (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.)
- Copy (NOT MOVE!) 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. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory. As stated above, copy (don’t move) the index.php file to your root directory, but MOVE (DON’T COPY) the web.config file to your root directory.
- Open your root directory’s index.php file in a text editor
- Change the following and save the file. Change the line that says:
to the following, using your directory name for the WordPress core files:
- Login to the new location. It might now be http://example.com/temp/wp-admin/
- 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.)