[wp-trac] [WordPress Trac] #31664: Multisite network setup for .htaccess
WordPress Trac
noreply at wordpress.org
Fri Sep 30 16:59:18 UTC 2016
#31664: Multisite network setup for .htaccess
--------------------------------+------------------------------
Reporter: wph4 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.1.1
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by lukecavanagh):
Having a similar redirect loop issue with subdomain based multisite.
https://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite
{{{
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31664#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list