How to correctly install WordPress in it's own (sub) directory
-
I read and followed this post to move my installation to it’s own directory (“wordpress”): https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
I have two questions regarding the .htaccess and index.php files.
1. index.php files
I changed the index.php file in the root to be:
require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );But I left the index.php file in the sub-directory as it was:
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );2. .htaccess files
What is the correct method for the two .htaccess files that my installation will have (one in the root and one in the sub-directory).The root .htaccess contains redirects etc controlled from cPanel – where should alterations to .htaccess concerning WordPress go? To the file in the root or just to the file in the sub – or both?
Thanks for your assistance!
Daniel
- The topic ‘How to correctly install WordPress in it's own (sub) directory’ is closed to new replies.