Moving process
Here are the steps to display a WordPress site installed in its own sub directory
- Go to the General Screen.
- In WordPress address (URL): set the address of your main WordPress core files. Example:
http://example.com/wordpress - In Site address (URL): set root directory’s URL. Example:
http://example.com - Click Save Changes. (Do not worry about the errors that happen now! Continue reading)
- Now move your WordPress core files (from root directory) to the subdirectory.
- Copy (NOT MOVE!) the
index.phpand.htaccessfiles from the WordPress directory into the root directory of your site (Blog address). The.htaccessfile is invisible, so you click on settings and check ‘show hidden files’. - Open your root directory’s
index.phpfile in a text editor - Change the following and save the file. Change the line that says:
require( dirname( __FILE__ ) . '/wp-blog-header.php' );to the following, using your directory name for the WordPress core files:require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' ); - Login to the new location. It might now be
http://example.com/wordpress/wp-admin/ - If you have set up Permalinks, go to the Permalinks Screen and update your Permalink structure. WordPress will automatically update your
.htaccessfile if it has the appropriate file permissions.
Discover more from Makao Bora
Subscribe to get the latest posts sent to your email.
Join The Discussion