I am creating separate WordPress installations in several subdirectories of one domain.
At first I was getting a 500 Server Internal error.. so I created the .htaccess file and uploaded it to each WordPress installation root.
.HTACCESS file:
# BEGIN WordPress
RewriteEngine On
RewriteBase /zingery/wordpress/
RewriteRule . /zingery/wordpress/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]
# END WordPress
Now, when I go to the root directory to complete the WordPress installation, I am redirected back to the parent directory.
Here is a link with the example:
http://example.com/fusys/temp/
When you click on "zingery" and then "wordpress" it takes you back to /temp
Any idea what is going on?
If you click on "test" in the temp directory it properly displays the index.php file inside that folder (the test directory does NOT contain a WP installation). This implies to me the parent redirect issue is WordPress related.
Can someone help me out?
RewriteBase /name-of-folder/
and thenRewriteRule . /name-of-folder/index.php [L]
.htaccess
? Just core WP rules.