I just uploaded a wordpress site using filezilla to a live server. Everything is ok except for the images. All image links are broken. I then reuploaded the whole upload folder but nothing changed. I also checked the file and folder permissions set to the upload folder and found it to be 777. Any help is appreciated.
Asked
Active
Viewed 2,214 times
3 Answers
0
First, make a backup of your website (files and database)
Then, install this plugin. After installing the plugin, look for "Tools > Search & Replace" in the Wordpress admin menu.
In the "Search for" form, enter localhost/127.0.0.1. In the "Replace with" form, enter your new domainname.

Daan
- 578
- 7
- 21
-
I thought changing site url would do the job. Won't it? – Raihan Mahmud Jul 25 '15 at 08:51
-
I do believe it would, but nothing ever goes as it should :) – Daan Jul 25 '15 at 08:53
0
I faced a similar kind of issue when i hosted my wordpress website from localhost to live url.. The images were not loading since all of them were having localhost links..
So I did the following to solve the issue:-
- Opened the database and edited table wp_options - set the 'siteurl' and 'home' rows value to your live server URL.
- Open your wordpress panel and install plugin - Velvet and activate it.
- Go to tools section of wordpress -> click "update urls", and the plugin page will open.
- Enter your old url (it may be your localhost, or any old domain where your site was previously hosted) and new url (your live server URL).
- Check all the checkboxes below it, and hit the "Update URLs NOW" button.
- Optional: If you used elementor to develop some of your pages, go to Elementor section of wordpress -> Tools -> "Replace url" tab, and repeat step 4 instructions here.
After doing this, 95% of the images of my site were fixed, but however logo and slider images were still not fixed.. So for that I had to go to "customize theme" option and re-select the logo and slider images..
Done.

Valentino Pereira
- 795
- 7
- 10