[TYPO3-english] PHP SCRIPT --- redirects on Typo3 with config.baseURL

angel.garcia1 at ext.mpsa.com angel.garcia1 at ext.mpsa.com
Tue Feb 1 15:01:17 CET 2011


Good afternoon,

I create a function on php to probe HTTP origin to see if its Client-IP or
X-BlueCoat

header.php
<?php

$v = @$_SERVER["HTTP_X_BLUECOAT_VIA"];

if (!$v)  {
	echo "0";
}  else {
              echo "1";
 }


?>

And now i need to get that var $y  to redirect on my typo3 .

My TS template

##Configuración
require_once (t3lib_extMgm::extPath('zone','fileadmin/header.php'));

[globalString=IENV:$v=0]
config.baseURL = http:/domain.net.com
[end]

[globalString=IENV:$v=1]
config.baseURL = http://domain.com
[end]



But it doesn´t work, any idea of how i can do it? It´s a little urgent.

What i want if var=0 it´s intranet  It use http:domain.net.com and if var=1
it´s Client IP so it use domain.com
Thank You very  much for your help

_____________________________________________
AGP


More information about the TYPO3-english mailing list