• We have a multisite wordpress installation that uses subdirectories for the various sites. When we tried to map some of the sites to domains. This didn’t work at first, so we put the following for each mapped site into the .htaccess file:

    RewriteCond %{HTTP_HOST} ^(www.)?site1.tcc.oursite.com$
    RewriteCond %{REQUEST_URI} !^/wordpress/site1/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /wordpress/site1/$1
    RewriteCond %{HTTP_HOST} ^(www.)?site1.tcc.oursite.com$
    RewriteRule ^(/)?$ wordpress/site1/index.php [L]

    This allowed all of the mapped sites to work. However, we can’t log into them and we can’t reach their dashboards when logged into unmapped sites. When we try, we get the infamous ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. We are trying to log in as a superuser. Trying to switch to the dashboard for a mapped site brings up the log in screen.

    We’ve tried the cookie_domain fix and variations on this that we’ve found on the Internet. So far, nothing has worked. Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Doesn’t your host allow you to have add-on domains? (not domain alias, that’s something different). When you specify an add-on domain, you should be able to specify which server sub-folder to send domain requests to. You should be able to enter arbitrary folders that do not actually exist, which fits perfectly into a WP Network subdirectory scheme.

    If you are familiar with virtual hosts, the add-on domain process creates a virtual host file for that domain and sets its document root to the specified folder. Thus the Network sub-site appears as that domain’s main site.

    If you cannot do add-on domains, I suggest separating out the domain rewrite rule set from the WP rule set you are supposed to insert when you first setup the network. Leave the original WP rule set alone. Add dedicated rewrite rules for the each domain above the WP set.

    Thread Starter advisor150

    (@advisor150)

    We are self-hosted in our own datacenter, so no add on domains for us.

    I’ll try adding the rewrite rules above the WP set.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess, multisite, and cookie errors’ is closed to new replies.