I recently started learning Wordpress about a few weeks ago. All-in-One WP Migration plugin helped me migrate a website from the web to my localhost. Upon uploading it to my local server, I noticed that no images are showing on the front end, other functions seems to be working just fine. I found out a while later that the reason as to why the it wasn't showing is because the path towards the images seems to be broken, thus producing a 404 error (image not found).
Images are pointing towards "localhost/wp-content/uploads/image.jpg" rather than "localhost/MyWebsite/wp-content/uploads/image.jpg" which I suspect is the reason as to why no images are showing.
Here are the plugins I mainly use:
- Woocommerce (and other plugins related to this)
- Jetpack
- W3 Total Cache
- All In One WP Security
- Smush
- WP Mail SMTP
Tried to deactivate all plugins and reverted the website to its default theme (twenty seventeen) but the issue still remains.
Thanks again for the help!
Just go to
site-url/wp-admin/options-permalink.php, select "Post name" and save the changes.