im updating a project , the problem is that all images src and header links and etc have path like this:
src="/media/js/hoverIntent.js"
and i cant see every thing ok on localhost
when i delete the first ‘/’ in src every thing is ok. but the project is very big and i cant delete one by one ,
how can i solve this problem.
Use
mod_rewriteto point the failing URLs to the correct ones.As example: your application uses URLs like
/media/js/hoverIntent.jsbut everytime the URL begins with/mediaand you have the data stored on your dev server in/myapp/media/.... In this case you can solve it by placing following.htaccessin your root folder:Sure, you need to adjust the target URL of your files on localhost