Slash-started resources redirection in HTML with .htaccess
- by Pawka
I have moved old version of webpage to some subdirectory: http://www.smth.com/old/. But all resources (images, css, etc.) in HTML are linked with slash symbol at the start. So browser still tries to load them from root path.
For example old/test.html contains:
<img src="/images/lma_logo.ico" /> <!-- not working !-->
<img src="images/lma_logo.ico" /> <!-- working !-->
How can I rewrite ulrs to load resources from the "old" dir if urls still starts with "/"?