htacess problem with multiple WP installs
-
Hi all, thanks for reading this – hope you can help.
I have been asked to install a 2nd wordpress install in a subfolder of domain with an existing WP site in the root.
So the current install is at:
https://www.example.comand the new install would be at:
https://www.example.com/frA problem has arisen where everytime we try to log in at /fr/wp-admin it redirects to /wp-login.php rather than /fr/wp-login.php
I believe the problem lies with the htaccess files, but this is not in my comfort zone and I and tearing my hair out trying to fix the problem. Have read through quite a few posts on similar topics but none seem to apply to this particular configuration.
The htaccess file in the root folder contains:
# 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
And a separate htaccess file in the ‘fr’ subfolder contains:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /fr/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /fr/index.php [L] </IfModule> # END WordPress
Can anyone please point out where I am going wrong and how I might fix this?
cheers
Craig
- The topic ‘htacess problem with multiple WP installs’ is closed to new replies.