[wp-trac] [WordPress Trac] #14295: 2.9.2 to 3.0 htaccess not upgrading & breaks image paths

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 16 11:15:14 UTC 2010


#14295: 2.9.2 to 3.0 htaccess not upgrading & breaks image paths
--------------------------+-------------------------------------------------
 Reporter:  gazouteast    |       Owner:                                                                     
     Type:  defect (bug)  |      Status:  new                                                                
 Priority:  normal        |   Milestone:  Awaiting Review                                                    
Component:  General       |     Version:  3.0                                                                
 Severity:  blocker       |    Keywords:  BUG, htaccess, 404, images, ms-blogs.php, blogs.dir.php, WPMU 2.9.2
--------------------------+-------------------------------------------------

Comment(by gazouteast):

 OK Guys - I think the only thing to do now is have a few people cast their
 eyes over the old and new htaccess content - I can see the differences,
 but have no idea what they imply.

 Please refer back to my original report above, for how the two versions
 affected the behaviour of the site - I have messed around enabling and
 disabling bits that look similar but are not, to see if it fixes anything,
 and it does not.

 The "Old" version was from a clean WPMU 2.9.2 install, the "3.0" version
 taken from a forums post.

 {{{
 # Begin OLD WordPress htaccess
 RewriteEngine On
 RewriteBase /

 #uploaded files
 RewriteRule ^(.*/)?files/$ index.php [L]
 RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
 RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

 # add a trailing slash to /wp-admin
 RewriteCond %{REQUEST_URI} ^.*/wp-admin$
 RewriteRule ^(.+)$ $1/ [R=301,L]

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule . - [L]
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
 RewriteRule . index.php [L]

 <IfModule mod_security.c>
 <Files async-upload.php>
 SecFilterEngine Off
 SecFilterScanPOST Off
 </Files>
 </IfModule>
 # End OLD WordPress htaccess
 }}}

 The above content is the default within the WPMU 2.9.2 htaccess.txt and is
 what was present when the site worked under 2.9.2 - it did not work with
 it under 3.0

 I have been completely unable to find either an htaccess template or a
 generator within the 3.0 download files - I have no idea how anyone
 arrived at the following v3.0 htaccess, but it is the one some people in
 the forums are claiming is working for them.

 {{{
 # BEGIN WordPress 3.0
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]

 # uploaded files
 RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2
 [L]

 # add a trailing slash to /wp-admin
 RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^ - [L]
 RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
 RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
 RewriteRule . index.php [L]
 </IfModule>
 # END WordPress 3.0
 }}}

 So - all in all, I am stumped and no further forward with a large part of
 my site portfolio either broken and bouncing everything as 404 with my
 Google ratings now thoroughly trashed and some sites about to be delisted
 in Google, or totally stalled in development because sub-blogs are
 banjaxed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14295#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list