WordPress Installation in its own folder

WordPress is installed in its own folder (i.e. http://example.com/wordpress )

  • Go to the Settings > General panel.
  • In the Site address (URL) box: change the address to the root directory's URL: http://example.com
  • Click Save Changes.
  • Do not worry about an error message at this point! You will probably get the 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. 
  • If you are not using pretty permalinks then you might not have a .htaccess file.
  • Open your root directory's index.php file in a text editor.
  • Change the line that says:  require('./wp-blog-header.php'); to: require('./wordpress/wp-blog-header.php');
  • Save the file.
  • Log in to your site. It should still be http://example.com/wordpress/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, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

Leave a Reply

Your email address will not be published. Required fields are marked *