wordpress yorum sayfalarında kullanmayı düşünüyorum fakat 3 seçenek var sizce hangisi daha uygun olur
1 meta kullanarak
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="refresh" content="0;URL=ADRES" /> </head> </html>2 HTTP/1.1 301 ile
<?php
header("HTTP/1.1 301 Moved Permanently");
$go=$_GET['url'];
$remove = array('http:/','http://','https://','https:/');
$stripedUrl = str_replace($remove, '', $go);
if (substr($go, 0, 5)=='https'){
header('Location: https://'.$stripedUrl);
}else{
header('Location: http://'.$stripedUrl);
}
?>3
<?php
$link = $_GET['adres'];
header("Location: $link");
exit();
?>
