3.5-beta2 multisite htaccess issue
-
Hello – I am looking into installing WordPress for the first time, and I have run into a snag with the .htaccess for a path-based multisite.
my site is currently at:
plaidscape.net/php-bin/wordpress/My install location looks like:
/php-bin/wordpress/
which is a simlink to
/php-bin/wordress-3.5-beta2/When I initially edit my wp-config.php, I added the line
define('WP_ALLOW_MULTISITE', true);
I then fire up the install at:
plaidscape.net/php-bin/wordpress/wp-admin/install.php
Everything goes swimmingly. After logging in, I goto tools->Network Setup, and it gives me the following for my wp-config:
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'plaidscape.net'); define('PATH_CURRENT_SITE', '/php-bin/wordpress/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
and for the .htaccess
RewriteEngine On RewriteBase /php-bin/wordpress/ 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).*) php-bin/wordpress-3.5-beta2/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ php-bin/wordpress-3.5-beta2/$2 [L] RewriteRule . index.php [L]
I logged out, logged back in, created a new site called plaidspots. Now, whenever I tried to go to the dashboard of a site (eg plaidscape.net/php-bin/wordpress/plaidspots/wp-admin/), I got stuck in an infinite forwarding loop (according to firefox, “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”).
I tinkered with the .htaccess until I got:
RewriteEngine On RewriteBase /php-bin/wordpress/ 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]
Which fixed the problem. I’ve left my site in the pre-fixed state, in the event that anyone would like to verify.
It wasn’t clear to me if this was an artifact of my install, or if this was a bug in the install instructions. If anyone would provide some guidance on where the proper place to call this out, or the correct way to fix this issue, I would greatly appreciate it.
Thank you
- The topic ‘3.5-beta2 multisite htaccess issue’ is closed to new replies.