Title: Redirect loop on subfolder multisite install
Last modified: August 22, 2016

---

# Redirect loop on subfolder multisite install

 *  [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * (@momekh)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/)
 * I have WP installed on a subdomain.
 * I installed Multisite on it. It automatically, without asking, activated the 
   subdomain version. I manually set the subdomain to false in wp-config.
 * I was able to make a site, but couldn’t access its stylesheets. The content on
   the subfolder site would show, but not styles! I tried to log in, the browser(
   chrome) just rolled on till it said “this site has a redirect loop”.
 * Wha whaat?
 * This was almost a week ago. I added some boilerplate htaccess code designed to
   help with this. And it seemed to work.
 * Now: I have reinstalled WP 4.0. The problem is with htaccess it seems.
 * Without ANY .htaccess file, the sites are working properly. I can log in to the
   main site, the network admin, write posts for the main site etc. It just doesn’t
   let me log in to any subsite (i.e. [http://subdomain.blog.com/subsite/wp-admin/](http://subdomain.blog.com/subsite/wp-admin/))—
   this gives the redirect loop.
 * And when I add an .htaccess file (I’ve tried the vanilla version that comes with
   WP in Settings, and other ones)… I get a 500 Internal Server Error. And that’s
   instant; the moment I add .htaccess, the browser window that was previously showing“
   redirect loop” error, automatically and mercilessly turns to the plain 500 Internal
   Server Error. Then nothing works!
 * Haaaaeeeellllppp!?

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

 *  [1a-spielwiese](https://wordpress.org/support/users/1a-spielwiese/)
 * (@1a-spielwiese)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321515)
 * Do you use the correct .htaccess for using subdomains (xy.DOMAIN.org)?
 * Or are you maybe using the file-version for subfolders (DOMAIN.org/xy?
 *  Thread Starter [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * (@momekh)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321517)
 * Hmmm…
 * I have wordpress installed on a subdomain. Just for that, do I need more instructions
   in the .htaccess?
 * After I’ve installed WordPress on the subdomain (which is [http://designby.momekh.com](http://designby.momekh.com))…
   I installed a multisite so I can have [http://designby.momekh.com/site1](http://designby.momekh.com/site1)
   etc. I have only added .htaccess for this scenario. Are you saying that I need
   to update .htaccess to reflect the original subdomain installation of WP itself?
 * Am I even making sense here? :/
 *  [1a-spielwiese](https://wordpress.org/support/users/1a-spielwiese/)
 * (@1a-spielwiese)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321524)
 * Normally WordPress displays the .htaccess, which you need – depeding on using
   subdomains or subfolders.
 * But it sounds strange to me, that you write:
 * > I installed Multisite on it. It automatically, without asking, activated the
   > subdomain version.
 * So, maybe you didn’t got displayed the .htaccess, which you need. –
 * Anyone else has an idea regarding this issue?
 *  Thread Starter [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * (@momekh)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321528)
 * Right now, the problem is simple in its severity: The moment I have ANY .htaccess
   file, a 500 internal server error on all sites (on the main designby.momekh.com
   and all subsites — I have only three now, all for testing purposes).
 * I can access the htaccess via Network Setup. I have tried that. And pretty much
   all variations I can find. But like I said, **any** form of `.htaccess` and I
   get a 500 internal serve error.
 * There is a certain [@ipstenu](https://wordpress.org/support/users/ipstenu/) (
   Mika Epstein) that I see on all matters of multisite issues… a person like that
   can help perhaps?
 * I am stuck pretty bad here.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321574)
 * > I installed Multisite on it. It automatically, without asking, activated the
   > subdomain version. I manually set the subdomain to false in wp-config.
 * That’s… weird. You didn’t have an old, lingering version of Multisite on the 
   server, did you?
 * I would check your httpd.conf settings and make sure you have allowOverride set
   to All (or Options All).
 *  Thread Starter [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * (@momekh)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321576)
 * > That’s… weird. You didn’t have an old, lingering version of Multisite on the
   > server, did you?
 * Now I didn’t say that. :/
 * I really don’t remember since when I have WP on the said domain (i.e. the designby.
   momekh.com domain). I have been upgrading of course, but the multisite was only
   after I had 4.0, so fairly recent.
 *  Thread Starter [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * (@momekh)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321587)
 * OK so this is pathetic.
    The .htaccess file (that I was editing on notepad.exe
   on win 8) had formatting!!!!!!!!!
 * The moment those formatting marks were removed, all is working well! _Alhumdulillah_!!
 * Thank you 1a and ipstenu for the help…
 * P.S. I was not able to see those formatting marks, only the support crew at Hostgator
   saw it and removed it. If notepad doesn’t catch them, what other free, simple
   text editor can one use!?

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

The topic ‘Redirect loop on subfolder multisite install’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [redirect loop](https://wordpress.org/support/topic-tag/redirect-loop/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)
 * [subfolder](https://wordpress.org/support/topic-tag/subfolder/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 3 participants
 * Last reply from: [Mohammad Khan (Momekh)](https://wordpress.org/support/users/momekh/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-subfolder-multisite-install/#post-5321587)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
