[wp-trac] [WordPress Trac] #9949: Follow 301s when importing

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 14 16:52:04 UTC 2012


#9949: Follow 301s when importing
--------------------------+-------------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Import        |     Version:  2.8
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |
--------------------------+-------------------------
Changes (by duck_):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  WordPress.org =>


Comment:

 wp_get_http() uses `$options['redirection'] = 5;` to follow 301 redirects.
 I tested this by uploading and inserting an image into a post, then I
 added a 301 redirect for that image to the .htaccess of the site:

 {{{
 Redirect 301 /wp-content/uploads/2012/02/image.png
 http://localhost/different.png
 }}}

 Finally I exported and imported into a different site. The import site had
 an image named "image", but the content was that of different.png.

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


More information about the wp-trac mailing list