So after moving a live site onto a local computer for offline show casing, a lot of the links have broken because of missplaced ../ that dreamweaver puts in.
It works online because the user of that domain doesn’t have permission to leave it’s doc root, but not so locally.
Is there an .htaccess that I could put the root dir that would restrict or redirect back to itself when trying to navigate to it’s parent?
So the site is in xampp/mysite/ and an img src has a value of ../images/image.png
So it’s looking for the image at xampp/images/image.png instead of staying in it’s root dir of xampp/mysite/images/image.png
I am assuming that all of your images are in the
/xampp/mysite/imagesdirectory.If so, then you could try adding the following to your .htaccess file in the root directory of your site.