Title: Image path problem when changing URL
Last modified: August 20, 2016

---

# Image path problem when changing URL

 *  [nilu72](https://wordpress.org/support/users/nilu72/)
 * (@nilu72)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/)
 * Hi, I am developing a new wp site on a temporary domain like this: tempdomain.
   site.com. When I am done editing, I want to release the site on a the live domain:
   site.com.
 * If I then change the url in WordPress from tempdomain.site.com to site.com, then
   there is a problem with image paths and links. The image path for example, will
   look something like this: “[http://tempdomain.site.com/wp-content/uploads/image.png&#8221](http://tempdomain.site.com/wp-content/uploads/image.png&#8221);
 * How can I avoid this issue?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ken Lewis](https://wordpress.org/support/users/trinity13/)
 * (@trinity13)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/#post-3604074)
 * Not much you can do about it. Unfortunately the full URL is put in the DB instead
   of just using relative path.
 * What I personally do:
    1. Backup DB to a .sql file
    2. Use Notepad++ to do a replace of the Development URL with the Production URL
    3. Restore the DB to the Production Server
 *  Thread Starter [nilu72](https://wordpress.org/support/users/nilu72/)
 * (@nilu72)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/#post-3604094)
 * Hi Ken,
    Thank you for your reply. I was sure that there was a solution for this.
   Must be a common issue.
 * I guess I can do like you mention, or just change the url after inserting the
   pic, to a relative url, so the url looks like this: “/wp-content/uploads/image.
   png”
 * Or is that a bad solution?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/#post-3604095)
 * You should not use relative file paths – but this plugin should help you change
   the URLs and links when you move the site:
 * [http://wordpress.org/extend/plugins/velvet-blues-update-urls/](http://wordpress.org/extend/plugins/velvet-blues-update-urls/)
 *  Thread Starter [nilu72](https://wordpress.org/support/users/nilu72/)
 * (@nilu72)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/#post-3604096)
 * Thank a lot WPyogi, that was very helpful.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Image path problem when changing URL’ is closed to new replies.

## Tags

 * [change URL](https://wordpress.org/support/topic-tag/change-url/)
 * [image path](https://wordpress.org/support/topic-tag/image-path/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [nilu72](https://wordpress.org/support/users/nilu72/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/image-path-problem-when-changing-url/#post-3604096)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
