Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i install the Roots Theme and then convert my installation to multisite... so that wordpress add some code into the previous .htaccess with root settings.

My .htaccess now looks like this and i'm becoming something redirection errors

Is there a conflict into my .htaccess?

##### Multisite Htaccess #####
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).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

##### Multisite Htaccess end ####


# BEGIN WordPress
<IfModule mod_rewrite.c>
 RewriteEngine On   
 RewriteBase /
 RewriteRule ^index\.php$ - [L]
 RewriteRule ^css/(.*) /wp-content/themes/roots/css/$1 [QSA,L]
 RewriteRule ^js/(.*) /wp-content/themes/roots/js/$1 [QSA,L]
 RewriteRule ^img/(.*) /wp-content/themes/roots/img/$1 [QSA,L]
 RewriteRule ^plugins/(.*) /wp-content/plugins/$1 [QSA,L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
</IfModule>

# END WordPress
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

well, I have both roots and multisite. However, I do not have roots specific rewrite rules.

I have the vanilla rewrite rules defined in the docs. I use the ones for subdomains instead of subfolders.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]

Comparing them to yours, perhaps, the bottom block is extra?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.