[wpmu-trac] [WordPress MU Trac] #351: wp-admin with no trailing
slash on non-VHOSTS redirects to main-site
WordPress MU Trac
wpmu-trac at lists.automattic.com
Tue Jun 5 14:44:46 GMT 2007
#351: wp-admin with no trailing slash on non-VHOSTS redirects to main-site
------------------------+---------------------------------------------------
Reporter: deanbag | Owner: donncha
Type: defect | Status: new
Priority: normal | Milestone: WPMU 1.0
Component: component1 | Version: 1.0
Severity: normal | Keywords: trailing slash
------------------------+---------------------------------------------------
I use non-VHOSTS, wpmu 1.2.1.
http://blogs.mysite.com/blog_name/wp-admin (no trailing slash) redirects
to:
http://blogs.mysite.com/wp-admin/
In order to fix this, I added the following to .htaccess, which solves the
general case of adding a trailing slash to all urls that look like
directories, this way, it also solves the bug at
http://trac.mu.wordpress.org/ticket/331 :
{{{
# force a trailing slash for dirs
RewriteRule !\..{2,4}$ - [C]
RewriteCond %{REQUEST_URI} !^.*/$
RewriteRule ^(.+)$ /$1/ [R=301,L]
}}}
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/351>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list