Multiple install and mod_rewrite
-
I’m trying to run a second copy of WP from ~/www/foo (the primary copy is in ~/www).
Installation went fine and I could actually get to my.domain.net/foo/wp-admin/install.php and run it, but when it took me to the login page I wound up on the 404 page for ~/www (the blog’s custom 404 not a server-level 404).
I tried hacking my .htaccess six ways from sideways but could not get it. This is what I think should work:
# BEGIN WordPress
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /foo RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /foo/index.php [L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
That throws Error 500 (server level) when trying to access foo/wp-login.php or any url on the main blog (such as leaving comments) that uses mod_rewrite.
If I need to, I can easily move all the base files into something like ~/www/main but I’d prefer to keep the URL unchanged if possible. I actually had it running from ~/www/wordpress but using wordpress’ option to remove “wordpress” from the URL until recently so I know how to do that, just not how to get the two installations to play nice.
- The topic ‘Multiple install and mod_rewrite’ is closed to new replies.