[eluser]Anonymous[/eluser]
Hi,
I've got the following problem:
I have a local development webserver running with this setup:
Code:
-www
-CLIENT1
-application
-system
-assets
-CLIENT2
-application
-system
-assets
Each client map has its own .htacces like this:
Code:
RewriteEngine on
RewriteBase /CLIENT1/
RewriteCond $1 !^(index\.php|images|imgs|tmp|public|downloads|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
This way i can upload a clients map directly to a clients production server, with minimal changes.
Now i want to link in my view files to images like this:
Code:
<img src="/assets/test.jpg">
but!, and here's my problem: this way the images wil link on my development server to:
/assets/test.jpg
instead of
/CLIENT1/assets/test.jpg
Is there a way to redirect all calls from /assets/ to {CLIENT}/assets/ ?
my .htacces knowledge is really to short on this