Title: Image paths
Last modified: August 19, 2016

---

# Image paths

 *  [megharah](https://wordpress.org/support/users/megharah/)
 * (@megharah)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/)
 * hi,
 * Recently, i’ve moved one of my blogs to another url, and when i did that, i’ve
   noticed all the images i’ve uploaded with the image gallery, was not visible,
   because the uploader does this: src=”[http://mysite.com/wp-content/uploads/april/](http://mysite.com/wp-content/uploads/april/)..”..
   so at the moment i’ve changed the url, i have to go back and change the src one
   by one…
 * Before wordpress 2.5 i was uploading every image as src=”../images/nameofthephoto.
   jpg” wich is more friendly in case you have to move your blog. Im so happy with
   the image uploader in 2.5, but i wonder if i can change the way it links the 
   images to something like i was using, without getting the whole url…
 * Any ideas?
 * Thanks

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802345)
 * you can run a SQL query on your database to change all occurances of
 * [http://olddomain.com](http://olddomain.com) to [http://newdomain.com](http://newdomain.com)
 * look at this page:
    [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 * The only part of that page relevant to you at this point is
    _2. Database Entries_
   It contains the instructions for how to change all the links using one query.(
   My suggestion assumes the location of your images is still the same as it was
   on the old blog, except on a different domain. That is, they are still the in
   same folder locations in relation to the rest of your WP installation)
 * The other part of that page that is quite relevant is:
    BACK UP YOUR DATABASE
   before you even think about doing this!!!!
 *  Thread Starter [megharah](https://wordpress.org/support/users/megharah/)
 * (@megharah)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802364)
 * thank you, but i was asking if there is a way to force the image uploader to 
   do the linking without the url, or to change the default path where and how uploads
   the images, to the a folder called images or photos on the root of the server…
 * all the links are already changed, so that doesn’t really matters, im only worried
   about future uploads
 * Thanks 😀
 *  Thread Starter [megharah](https://wordpress.org/support/users/megharah/)
 * (@megharah)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802461)
 * bump
 *  [hapatite](https://wordpress.org/support/users/discojing/)
 * (@discojing)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802519)
 * yep, you can change the default path
 * settings > misc > Uploading section
 *  Thread Starter [megharah](https://wordpress.org/support/users/megharah/)
 * (@megharah)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802527)
 * discojing>
 * Woa… so simple, im almost ashamed.. LOL, thanks a lot 😀
 * Now, the thing is, in the post, the image still is called as
 * **<src=”[http://www.mysite.com/photos/photo.jpg&#8221](http://www.mysite.com/photos/photo.jpg&#8221);/
   >**
 * so i guess it could be solved by deleting the url each time, but maybe there 
   is a way that WP do the src’s like this by default:
 * **<src=”../photos/photo.jpg” />**
 * *Crossing my fingers for someone with the solution*
 * Thanks!!
 *  Thread Starter [megharah](https://wordpress.org/support/users/megharah/)
 * (@megharah)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802553)
 * bump
 *  [hapatite](https://wordpress.org/support/users/discojing/)
 * (@discojing)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802561)
 * um, I think you might have to change each post.
    Or maybe try opening the post
   and then saving it to see if Wp auto changes it? Other than that, try doing something
   with the image library (i’m unfamiliar with 2.5.1’s media library) so, good luck!
 * sometimes, you just gotta do everything ALL over (hopefully thats not the case
   though)
 *  [vg_dog](https://wordpress.org/support/users/vg_dog/)
 * (@vg_dog)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802669)
 * I am having the same issue and don’t want to re-upload all my images. They are
   in the correct folders -just linking to my old domain. Don’t know what to do.

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

The topic ‘Image paths’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [vg_dog](https://wordpress.org/support/users/vg_dog/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/image-paths/#post-802669)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
