Support » Networking WordPress » WordPress Multisite, 302 Redirects, and Htaccess

  • Hi folks-

    We are having a consistent problem with Multisite and redirects. We are using the Sub-Folder version of Multisite.

    The primary (www) URL’s work fine but the non-www versions always redirect to the www-homepage. works fine but redirects to

    We’ve tried multiple tests with different hosts and different amounts of content and the result is always the same!

    We suspect it has to do with the code required for the top of the .htaccess file (below). When we remove the code only the homepage works.

    Does anyone know how to fix this? While the site works with this bug we don’t feel it is viable as the penalty on usability is huge (for anyone without the www).


    The following is the htaccess code prescribed by WordPress when we were setting up the Multisite Network:

    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]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Multisite, 302 Redirects, and Htaccess’ is closed to new replies.