Dear colleagues,
I have the following directory structure:
www.domain.com/projects/project1
www.domain.com/projects/project1/images
www.domain.com/projects/project2
www.domain.com/projects/project2/images
The problem is that inside HTML files image paths are specified using DocumentRoot /. This results in requests similar to:
www.domain.com/images
Obviously, this does not work, because images are located inside each project's own image folder:
www.domain.com/projects/project1/images
I would like to create a rule to solve this problem. I have tried the following:
RewriteEngine on
RewriteRule ^/$ /var/www/vhosts/pikkles.com/httpdocs/projects/fujichemical/astareal/beta/ [nc]
However it does not seem to work. I have checked the paths and they are correct. What am I doing wrong?
Thank you in advance.
Vitaly