Burhan KARADERE Kişisel Blog - Bilgisayar IT Haber - Programlama - Donanım

Hızlı Erişim

ArÅŸiv

WordPress 404 hata sayfası ile kalıcı bağlantı ayarı

 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’);
?>

4 comments to WordPress 404 hata sayfası ile kalıcı bağlantı ayarı

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>