Skip to content

Modifying installation path

Jeremy Mouton edited this page Jul 8, 2015 · 1 revision

Modifying installation path

By default, Wordpress core will be installed inside /wp/.

To modify the install path, you'll need to edit:

composer.json:

"webroot-dir": "wp",

sample.wp-config.php:

define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );

index.php:

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

sample.htaccess:

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) wp/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L]