Plesk ayarlarından Custom error Default page ‘i örnegin 404.php oalrak alttaki kodu kaydedin ve set edin. çalışacaktır.
<?php
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, ‘://’);
$pos = strpos($qs, ‘/’, $pos + 3);
$_SERVER['REQUEST_URI'] = substr($qs, $pos);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include(‘index.php’);
?>
ya da
Â
<?php
$gelenVeri = $_SERVER['QUERY_STRING'];
$_SERVER['REQUEST_URI'] = substr($gelenVeri, strpos($gelenVeri, ‘:80′)+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include(‘index.php’);
?>
