Welcome Guest, Not a member yet? Register   Sign In
Multiple sites & linking to assets
#1

[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


Messages In This Thread
Multiple sites & linking to assets - by El Forum - 02-04-2010, 07:38 AM
Multiple sites & linking to assets - by El Forum - 02-04-2010, 08:32 AM
Multiple sites & linking to assets - by El Forum - 02-04-2010, 09:14 AM
Multiple sites & linking to assets - by El Forum - 02-07-2010, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB