Hello
I have a file structure that serves mutliple domains with a top level .htaccess pushing requests down to the domain specific directories:
...
ReWriteCond %{REQUEST_URI} !webroot/domains/www.sitea.com/
ReWriteRule ^(.*)$ webroot/domains/www.sitea.com/$1 [L]
ReWriteCond %{REQUEST_URI} !webroot/domains/www.siteb.com/
ReWriteRule ^(.*)$ webroot/domains/www.siteb.com/$1 [L]
...
An .htaccess at the domain level (e.g. webroot/domains/www.siteb.com/.htaccess) then applies various rules to manage the URLs for the domain pages:
...
DirectoryIndex pageincludes/home.php
RewriteRule ^home$ pageincludes/home.php [L]
...
So the file structure looks something like this :
/webroot/domains/www.sitea.com/
/webroot/domains/www.siteb.com/
/webroot/js/script1.js
/webroot/images/image1.png
My problem is that I want to be able to use common resources in the served pages e.g.:
<script type="text/javascript" src="/js/script1.js"></script>
<img src="/images/image1.png" alt="80%"></img>
These resources are not found by the client. Is this pattern a non-starter or is there a way I can get this to work?
Many thanks.