Site is currently moved from Production to Development server. So the previous setup would be http://production.com/
and now the development setup is http://development.com/site/
My problem is that almost all of the assets are pointing to absolute path, like the js, css and images.
Example:
JS: <script src="/assets/path/to/js/script.js"></script>
CSS: <link rel="stylesheet" type="text/css" href="/assets/path/to/css/style.css" />
IMAGE: <img src="/assets/path/to/images/image.jpg">
All of these assets will not load because it all points to http://development/assets/
. It should be http://development/site/assets/
Is there a way to fix this using htaccess? I don't want to go around site and change all paths to relative since it would be a big job. I just want to use something simple so that when moving back to production where it is not in subfolder anymore, it would be easier to migrate by just changing the htaccess file.
P.S. htaccess should be within the subfolder /site/ because i don't want placing it the development root since it would affect other subfolders within the development root.
Thank you.