I recently had to move a CodeIgniter based website from the web root of:
/var/www/vhosts/dev/
to:
/var/www/vhosts/dev/site1/
The problem I am encountering is that I need the web root to still remain accessible from the domain: www.devdomain.com
All relative links now are broken since they obviously were referring to the web root.
Is there a rewrite rule or something at the top-level I can use that will automatically add the site1/
to all relative based links?
So, what would have normally been;
<a href="/enrollment">Enrollment</a>
https://www.devdomain.com/enrollment
Now needs to become;
<a href="/enrollment">Enrollment</a>
https://www.devdomain.com/site1/enrollment
Any help would be extremely appreciated.