/ Published in: Apache
Currently, multisite is easiest to setup under the following conditions: 1) WordPress for main site installed in the root directory 2) Each additional network site is created in its own subdirectory
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]
URL: http://perishablepress.com/press/2010/07/07/htaccess-code-for-wordpress-multisite/