[wp-trac] [WordPress Trac] #27927: Multisite www gets treated as a subdomain
WordPress Trac
noreply at wordpress.org
Sun Apr 20 03:09:37 UTC 2014
#27927: Multisite www gets treated as a subdomain
--------------------------+-----------------------------
Reporter: Ipstenu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.9
Severity: normal | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
To reproduce:
1) Install WordPress on a site as http://example.com (NO WWW!)
2) Activate Multisite as subdomains
3) Visit www.example.com
Instead of being redirected to example.com, you will end up at the signup
page: example.com/wp-signup.php?new=www (or if you have a NOBLOGREDIRECT
you go there).
www is special and shouldn't be treated as it's own subdomain. While this
can be handled with a simple .htaccess redirect (see below), this strikes
me as something we should be catching.
{{{
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27927>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list