I have a site with bunch of files, made with using of root relative paths:
<img src="/assets/images/homepage/footer-2.gif"
For testing purposes, i have to place that site in sub folder on my localhost, and on my test server. Of course, because of using of root relative paths, links aren't working.
Is there any way to avoid changing of links, and to make site working properly in sub folder too? (.htacces, maybe)