Title: multisite install re-login loop
Last modified: August 19, 2016

---

# multisite install re-login loop

 *  [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/)
 * I recently followed all the steps in setting up the multisite functionality on
   my blog. However, after I modify the .htaccess and wp-config files and it tells
   me to re-login, I get a login loop: I login, it just loops back to needing to
   login. I visit the blog itself and I get a message about a redirect problem. 
   I have rejigged the files so that I have the blog back, but would love to get
   the multisite functionality working. Any ideas?
 * I have tried, just so you know, disabling all my plugins, deleting all my plugins(
   after backing them up of course). That didn’t seem to help.

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1555982)
 * Did you clear your cookies and your cache? The setup requires you to login again,
   so sometimes things need to be flushed.
 *  Thread Starter [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1555987)
 * Yeah, I flushed everything and even tried different browsers.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556145)
 * Got a link to your site?
 *  Thread Starter [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556147)
 * sure…[http://www.stolteclan.ca](http://www.stolteclan.ca)
 * however, I have reverted everything so that it’s working as it was before. What
   else could I do for you?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556170)
 * the /blog/ term got stuffed in the permalinks. Which it will do if it lets you
   pick subfolders.
 * What host are you on?
    When you added the stuff to the config & the htaccess,
   did it have the www in there? (in the past, redirects happened with www & non)
 * (whooo Toronna!)
 *  Thread Starter [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556182)
 * so with the permalinks, what should I do?
 * I am with DreamHost.
    Yes the www was there. I had to add some define() in the
   wp-config myself because I futzed something when setting up the network. It initially
   says, when you first enable multisite in config, that you should ideally have
   things without “www” and so I changed that in my settings and it kicked me out
   permanently. So I added the following two lines to my config to fix it,
 *     ```
       define('WP_SITEURL', 'http://www.stolteclan.ca');
       define('WP_HOME', 'http://www.stolteclan.ca');
       ```
   
 *  Thread Starter [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556183)
 * p.s. Toronto rocks…except during the G20
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556190)
 * Ah, dreamhost. Have you talked to them? They disable the network from working
   on their shared accounts. :-/ make sure you have the right accountlevel before
   we run around in circles.
 * > p.s. Toronto rocks…except during the G20
 * Yeah really. :-/ Peaceful day here on the East coast.
 *  Thread Starter [lyfstank](https://wordpress.org/support/users/lyfstank/)
 * (@lyfstank)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556194)
 * I haven’t talked directly with them. My friend who set me up with them talks 
   with them. I’ll e-mail him and then let you know.
 * Thanks!
 *  [TomWeissert](https://wordpress.org/support/users/tomweissert/)
 * (@tomweissert)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556207)
 * Hi, I have a similar problem (looping login after enabling multisite). I think
   I’m getting close to the problem. Looking at the cookies that are generated, 
   the path included with the login cookie after I enable multisite is different
   from the one before I enable, so I think the login is working but it is not able
   to read back the login cookie.
 * I’m on a windows server with IIS. Here is are the lines I add to my config file
   for the multisite:
 * define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, false ); $base = ‘/
   forkingpaths/blogs/’; define( ‘DOMAIN_CURRENT_SITE’, ‘forkingpaths.net’ ); define(‘
   PATH_CURRENT_SITE’, ‘/forkingpaths/blogs/’ ); define( ‘SITE_ID_CURRENT_SITE’,
   1 ); define( ‘BLOG_ID_CURRENT_SITE’, 1 ); define( ‘AUTH_SALT’, ‘mbEB5ysi,c?a5]
   @hcN06pCD|t`}vYlE3;s@zG`K|(+0PDz:O5_r>$13sX2oq3n*c’ ); define( ‘SECURE_AUTH_SALT’,‘
   =i= XHzEKM.%CNV{2;dy :HQviWC`bxb|*5>PB5~|c.5e9Sg<^5|Jd.1xqR!V5Nt’ ); define( ‘
   LOGGED_IN_SALT’, ‘G4|9@Eb>EiRJ=VO{XVJ!!dHNbXIf2g;1#s,LRao|9^P79P4<(0>S=.P>rA61u2E)’);
   define( ‘NONCE_SALT’, ‘(wl?$BU%clR<*jlm{;&yvQu|G@H&?,4:B)j[G!GHkv`(`Mw)^xi(6^?}
   8BX0bf&0′ );
 * before these lines are added, the cookie path is /blogs/ but afterwards, it becomes/
   forkingpaths/blogs/
 * I tried changing the ‘PATH_CURRENT_SITE’ to /blogs/ but then I get a “can’t connect
   to the database” error.
 * If it’ll help I can include the httpd.ini file (equiv of .htaccess)
 * Thanks,
    Tom
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556208)
 * > define( ‘DOMAIN_CURRENT_SITE’, ‘forkingpaths.net’ );
   >  define( ‘PATH_CURRENT_SITE’,‘/
   > forkingpaths/blogs/’ );
 * You can’t run the network with the WordPress files in one directory, and the 
   main URL showing the TLD. It has to be served from the folder it;s installed 
   in.
 * See the note here:
    [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 *  [TomWeissert](https://wordpress.org/support/users/tomweissert/)
 * (@tomweissert)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556209)
 * I’m not sure I understand. the root directory of the domain forkingpaths.net 
   is called /forkingpaths/
    The WP3 files are installed in a subdirectory of this
   root folder called /blogs/
 * Thus the address of the blog is forkingpaths.net/blogs/
    and before I make the
   config change, all is well.
 * What should I do?
    thanks tom
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556211)
 * > Thus the address of the blog is forkingpaths.net/blogs/
 * But above your define( ‘DOMAIN_CURRENT_SITE’, ‘forkingpaths.net’ );
    is set to
   something different.
 *  [jay-hughes](https://wordpress.org/support/users/jay-hughes/)
 * (@jay-hughes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556376)
 * I’m running into the same issue with trying to set up multi site on my development
   server. (Windows IIS 7, 2008 mod_rewrite installed) using sub directories.
 * In the wp-config.php, if I set the ‘SUBDOMAIN_INSTALL’ to false, it loops me 
   through the log in. If I change it to true it allows me to login.
 * Then I can switch it back and forth whilst logged in… but I get a 404 when creating
   my sub-directory.
 * It’s annoying because It would save me alot of time if I could get this going…
   any advice greatly appreciated.
 * Jay.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘multisite install re-login loop’ is closed to new replies.

## Tags

 * [install fail](https://wordpress.org/support/topic-tag/install-fail/)
 * [login loop](https://wordpress.org/support/topic-tag/login-loop/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 14 replies
 * 4 participants
 * Last reply from: [jay-hughes](https://wordpress.org/support/users/jay-hughes/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/multisite-install-re-login-loop/#post-1556376)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
