Title: Image link problem
Last modified: August 31, 2016

---

# Image link problem

 *  [dr cortex](https://wordpress.org/support/users/dr-cortex/)
 * (@dr-cortex)
 * [10 years ago](https://wordpress.org/support/topic/image-link-problem-2/)
 * Hi guys,
    I am having a problem with the website I am working on which is sitting
   on a Windows machine running XAMMP. On the local server viewing the site is fine,
   although when I view site from a remote machine the images do not display – Links
   between pages are ok. Looking at the source code I see the problem:
 * `<link rel="shortcut icon" href="http://127.0.0.1/wordpress/wp-content/uploads/
   2015/09/logo1.gif" />`
 * All image links are looking for the localhost. How can I fix this site wide?
 * Thanks in advance.

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

 *  [Tanveer Sure](https://wordpress.org/support/users/tsure/)
 * (@tsure)
 * [10 years ago](https://wordpress.org/support/topic/image-link-problem-2/#post-7331944)
 * Hi,
 * Take a look at the [Search and Replace](https://wordpress.org/plugins/search-and-replace/)
   plugin.
 * This has worked for me in the past when my URL’s were still referring to localhost.
 * ~Tanveer
 *  Thread Starter [dr cortex](https://wordpress.org/support/users/dr-cortex/)
 * (@dr-cortex)
 * [10 years ago](https://wordpress.org/support/topic/image-link-problem-2/#post-7331973)
 * Hi Tanveer,
    Thanks for the response. The search and replace plugin seems to 
   work, I managed to change 11 urls from local host to the servers ip address, 
   although when I upload the modified database to wordpress I get these errors:**
   Warning: mysqli::multi_query(): MySQL server has gone away in C:\xampp\apps\wordpress\
   htdocs\wp-content\plugins\search-and-replace\inc\Database\Importer.php on line
   25
 * Warning: mysqli::multi_query(): Error reading result set’s header in C:\xampp\
   apps\wordpress\htdocs\wp-content\plugins\search-and-replace\inc\Database\Importer.
   php on line 25
 * And I the links are still broken… Any idea how to overcome this?
 * Cheers.
 *  [Tanveer Sure](https://wordpress.org/support/users/tsure/)
 * (@tsure)
 * [10 years ago](https://wordpress.org/support/topic/image-link-problem-2/#post-7331975)
 * Hi,
 * Sorry to hear you are still having issues. I think in my workflow, I had downloaded
   and installed the plugin directly on my server and not in localhost. Also, another
   colleague of mine has had success using the following plugin too:
 * [https://wordpress.org/plugins/velvet-blues-update-urls/](https://wordpress.org/plugins/velvet-blues-update-urls/)
 * Before addressing the SQL error can you try the approach where you put back your
   old database on the server, let the images not show and rather show localhost
   URL and then install the Search and Replace plugin on the server and then replace
   the links in them?

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

The topic ‘Image link problem’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 2 participants
 * Last reply from: [Tanveer Sure](https://wordpress.org/support/users/tsure/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/image-link-problem-2/#post-7331975)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
