Make WordPress Core

Opened 16 years ago

Closed 13 years ago

#9949 closed defect (bug) (worksforme)

Follow 301s when importing

Reported by: ryan's profile ryan Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Import Keywords:
Focuses: Cc:

Change History (3)

#1 @ryan
15 years ago

  • Milestone changed from 2.9 to Future Release

#2 @SergeyBiryukov
14 years ago

  • Milestone changed from Future Release to WordPress.org

#3 @duck_
13 years ago

  • Milestone WordPress.org deleted
  • Resolution set to worksforme
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.