Visa ett inlägg
Oläst 2006-10-18, 13:44 #2
DeSotos avatar
DeSoto DeSoto är inte uppkopplad
Flitig postare
 
Reg.datum: Oct 2005
Inlägg: 323
DeSoto DeSoto är inte uppkopplad
Flitig postare
DeSotos avatar
 
Reg.datum: Oct 2005
Inlägg: 323
I PHP kan du göra så här:

Kod:
<?php
if( $_SERVER['SERVER_NAME'] == 'gammaladress.se' || $_SERVER['SERVER_NAME'] == 'www.gammaladress.se' )
{
	header( 'HTTP/1.1 301 Moved Permanently' );
	header( 'location: http://www.nyadress.se/'. $_SERVER['REQUEST_URI'] );
}
?>
Har du tillgång till Apache så kan du lägga denna kodsnutt i en egen fil, och i .htaccess ange att denna fil ska läggas överst i alla filer med auto_prepend_file.
DeSoto är inte uppkopplad   Svara med citatSvara med citat