Second WordPress Installation in Sub-directory
-
I’m trying to set up a second installation of WordPress in a sub-directory:
https://mydomain.com/lattice-interactive/
When I try to run the install, I get an error 404 from the main WordPress installation in the root, and the url shows as:
https://mydomain.com/lattice-interactive/wp-admin/install.php
The server support said I need to add an .htaccess to the sub-directory, but I tried this and it did not work:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] </IfModule> # END WordPress
This is the content of the .htaccess in the root:
[redacted a large block of code – i set up a Pastebin for you, please do so in the future]
Thanks!
Randy
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Second WordPress Installation in Sub-directory’ is closed to new replies.