Title: Remove base path from image src
Last modified: August 20, 2016

---

# Remove base path from image src

 *  [sivakarthick16](https://wordpress.org/support/users/sivakarthick16/)
 * (@sivakarthick16)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/remove-base-path-from-image-src/)
 * Hi,
 * I am getting a problem in wordpress. Please help me to sort out this.
 * I uploaded an image via administrator -> posts/pages & noticed that image URL
   is starting with base URL something like this,
 * **[http://localhost/mysite.com/…/test.jpg](http://localhost/mysite.com/…/test.jpg)**
 * In this case if I decided to upload my site from local server to online server
   then I need to replace ‘localhost’ with my site name in database otherwise my
   image won’t work.
 * But I don’t think this is proper way because each time I want to replace site
   name when upload to online server.
 * Don’t they have any proper solution for this?? Please help me…,
 * Thanks in advance.

The topic ‘Remove base path from image src’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sivakarthick16](https://wordpress.org/support/users/sivakarthick16/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/remove-base-path-from-image-src/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
