We are trying to run our Joomla site locally but are having issues with paths to things like images etc. We copied our site/database down from SiteGround and set it up locally in folder xampp/htdocs/DemoOrg and the site functions fine but all the paths to images etc are failing.
On Siteground the path to an image is set as "/images/ReportLog.jpg" and it displays but locally it doesn't display. If we do F12 and add /DemoOrg/ to the beginning of the path the image appears.
We need the site to function in the same way as on SiteGround so cannot add "/DemoOrg/" to the paths manually otherwise we would have to change code everytime we downloaded/uploaded the files.
Is there a setting that will solve this - someone has suggested in the hosts file but not sure how to do that.