Title: Multisite (with nested paths) wp-admin redirect loop
Last modified: April 16, 2018

---

# Multisite (with nested paths) wp-admin redirect loop

 *  [frankastin1](https://wordpress.org/support/users/frankastin1/)
 * (@frankastin1)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/multisite-with-nested-paths-wp-admin-redirect-loop/)
 * Hi I have hacked WordPress to allow nested paths in multisites, these blogs start
   with a `/s/`. Eg: `blogdomain.com/s/blog-name` . Though the main blog still sits
   on blogdomain.com.
 * This works fine to display the sites, but the wp-admin goes into a redirect loop.
   I presume this is something I need add to the ht access to redirect pages to 
   the correct location.
 * What is the correct rule to do this, I have tried : `RewriteRule ^/s/([_0-9a-
   zA-Z-]+/)?(wp-(content|admin|includes).*) /s/$2/wp-admin/index.php`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultisite-with-nested-paths-wp-admin-redirect-loop%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/multisite-with-nested-paths-wp-admin-redirect-loop/#post-10207272)
 * Sorry for the slow reply. If this is still an issue for you, what admin URL is
   requested that is causing the redirect loop and what should it be? Wouldn’t you
   essentially just need to strip out the `/s`? Would doing so mess up the front
   end? If so, what condition can be used to distinguish front end from admin requests?

Viewing 1 replies (of 1 total)

The topic ‘Multisite (with nested paths) wp-admin redirect loop’ is closed to new
replies.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/multisite-with-nested-paths-wp-admin-redirect-loop/#post-10207272)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
