Thursday 01 April 2010 6:49:33 am
Hi,
I find a solution to use servervar match order : First, in your VHost, use this rules to set your variable : SetEnvIf Request_URI ^/.* SITE_ACCESS=site1_en
SetEnvIf Request_URI ^/de.* SITE_ACCESS=site1_de
SetEnvIf Request_URI ^/es.* SITE_ACCESS=site1_es
You can also add this one : SetEnvIf Request_URI ^/en.* SITE_ACCESS=site1_en
Do the same for the other VHost and create another VHost for the backend with this rule : SetEnvIf Request_URI ^/ SITE_ACCESS=admin
Next, in settings/override/site.ini.append.php, put this conf : [SiteAccessSettings]
MatchOrder=servervar
ServerVariableName=REDIRECT_SITE_ACCESS
(Apache add 'REDIRECT_' before your variable) Restart Apache and try.
|