Have an issue deploying Roots in a subdirectory called ‘travel’. The DASH loads fine but it seems the header won’t load on the front end of the site. Racking my head knowing I am missing something obvious. If anyone has any thoughts/exp would love some suggestions.
wp-config.php
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/travel/wordpress');
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']. '/travel/');
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/travel/wrk');
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/travel/wrk');
...
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
index.php (note have WP installed in dir ‘wordpress’
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . './wordpress/wp-blog-header.php' );
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /travel/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /travel/index.php [L]
</IfModule>
WP install folder structure
- wordpress
- wrk (themes)
.htaccess
index.php
wp-config.php