I have a main WordPress installation, with this (normal) .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
And I have a different WP installation under /conekt
, with this .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /conekt/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /conekt/index.php [L]
</IfModule>
Each have their own db, and each point to root
, respectively root/conekt
folders.
(Edit: I actually found this to be incorrect: The main WP works fine).
The subfolder WP front page and admin both work fine, but none of the frontend links (of the subfolder WP) work, with a custom permalink set to [root/conekt/]%postname%
I've tried resetting permalinks for the subfolder WP, but still no go. What am I doing wrong? Do I need to catch all calls for /conekt/
in the .htaccess
from root? If so, how? I'm not an expert in .htaccess
rules.
I've already browsed through these questions, but haven't been able to find an answer for my problem in any of them:
- Wordpress within a subdirectory of another Wordpress environment doesn't work
- Permalinks not working on second wordpress installed in a subdirect
Thank you very much for your time.
Update: Everything works perfectly when I select default permalinks for the WP inside the folder. Links only stop working when I try to use pretty permalinks (which is what is desired).