Permalink Problem – 2nd WP Install in Sub Directory of 1st.
-
Based on a generally dysfunctional development process, I’ve ended up creating a 2nd wordpress blog in a subdirectory of a first. So, basically I have 1 WP install at https://mysite.com/ and another at https://mysite.com/sub/.
The 2nd install in the sub directory is running on its own database, and everything seems to be working – except for pretty permalinks on the install in the sub directory.
I assume this is a .htaccess issue, but can’t get much beyond that. If I enable pretty permalinks on the 2nd install, I simply get 404 error pages from the root install.
My original WP .htaccess looked like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
And when I enable pretty permalinks in the 2nd sub directory, it wants me to add this to my .htaccess:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /contractor/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /sub/index.php [L] </IfModule>
I tried just adding this code below the other, but that didn’t seem to do anything – and now I’ve more than exhausted my knowledge of .htaccess files.
Any suggestions?
- The topic ‘Permalink Problem – 2nd WP Install in Sub Directory of 1st.’ is closed to new replies.