Replies: 0
Hi – big problem here and I’ve made it work with other sites. Help! please!
I have WP in a subdirectory /staging2018/
All pages are displaying properly EXCEPT the home page. Links to home say http://paultaub.com but are resolving to paultaub.com/staging2018 and giving a 404 error
.htaccess at root:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?paultaub.com$
RewriteCond %{REQUEST_URI} !^/staging2018/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /staging2018/$1
RewriteCond %{HTTP_HOST} ^(www.)?paultaub.com$
RewriteRule ^(/)?$ staging2018/index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
index.php at root:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/staging2018/wp-blog-header.php' );
.htaccess in subdirectory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /staging2018/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /staging2018/index.php [L]
</IfModule>
# END WordPress
index.php in subdirectory:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Wordpress address:
https://www.paultaub.com/staging2018
Site address:
https://www.paultaub.com
Reading home page set to “Home”
permalinks set to post name
Any help is greatly appreciated. Thanks!