[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Un web redirect particolare



Il giorno gio, 31/05/2007 alle 17.34 +0200, gianluca@bucchianico.net ha
scritto:
> Salve a tutti,
>   ho la necessita di ridirigere il sito www.pippo.com su www.pluto.com  
> ma ho la necessità che:
> 
> - l'URL rimanga www.pippo.com
> - la varibile di Apache $_SERVER['SERVER_NAME'] sia www.pluto.com
> 
> E' fattibile una cosa simile?

Assicurati che i moduli proxy, proxy_http e rewrite siano abilitati e
poi:

RewriteEngine on
RewriteRule ^(.*) http://www.pluto.com$1 [L,P]

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                fog@debian.org
INIT.D Developer                                           fog@initd.org
 When people say things are a lot more complicated than that, they
  means they're getting worried that they won't like the truth.
                                                    -- Granny Weatherwax

Attachment: signature.asc
Description: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente


Reply to: