1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-29 18:50:25 +02:00

Merge branch 'ticket/bantu/9908' into develop-olympus

* ticket/bantu/9908:
  [ticket/9908] Send 301 before stripping SID so bots do (hopefully) not revisit.
This commit is contained in:
Nils Adermann 2011-06-11 01:25:08 +02:00
commit 065bcde662

View File

@ -592,6 +592,7 @@ class session
// otherwise they'll index this page with the SID, duplicate content oh my! // otherwise they'll index this page with the SID, duplicate content oh my!
if ($bot && isset($_GET['sid'])) if ($bot && isset($_GET['sid']))
{ {
send_status_line(301, 'Moved Permanently');
redirect(build_url(array('sid'))); redirect(build_url(array('sid')));
} }