Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Before I upload my website to server, I created post with images which are uploaded to media, their url are, for example: http://localhost:40952/wp-content/uploads/2011/09/study_in-En.gif

After I uploaded website to server, the link to the images in the post is not updated, therefore, the images are disappeared in post.

Is there anyway I can update the images link automatically? It is very painful to go and fix every link url. Thanks.

share|improve this question

1 Answer 1

before copy/pasting the database from your local machine to the production server, you should do a Find & Replace on the domain name.

this way you replace localhost:40952 with the correct domain on every url in the database.

or read the part 'Moving WordPress to a New Server' on the codex.

share|improve this answer
    
Thanx. Let's me try. –  John Sep 27 '11 at 14:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.