Total Users Online: 71 üye, 1 guest | Tarih/Saat: 2024-04-20 09:05
REMOVING PHPSESSID FROM URLS
This tutorial will teach you how to get rid of PHPSESSID urls once they have already been indexed by google. Amazing stuff.
This tutorial will teach you how to get rid of PHPSESSID urls once they have already been indexed by google. Amazing stuff.

Open up system/header.php and put the following code right at the beginning. Works wonders.

Kod:
$URL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if (!ini_get ('safe_mode') && preg_match ('/'.session_name().'=([^=&\s]*)/i', $URL))
{ $URL = preg_replace ( array ('`'.session_name().'=([^=&\s]*)`', '`(&|\?)+$`'), '', $URL);
@ header ("HTTP/1.1 301 Moved Permanently");
@ header ("Location: " . trim ($URL));
exit();
}

Henüz yorum yapılmamıştır.
REMOVING PHPSESSID FROM URLS
Author: Kaan
Date: 2011-11-27 11:19
Comments: (0)
Benzer SayfalarYorum
OPEN EXTERNAL URLS IN NEW WINDOW0
 
Powered by Seditio © 2009-2012 All Rights Reserved