mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/9908] Send 301 before stripping SID so bots do (hopefully) not revisit.
PHPBB3-9908
This commit is contained in:
parent
57879d508a
commit
b5cefc400e
@ -592,6 +592,7 @@ class session
|
||||
// otherwise they'll index this page with the SID, duplicate content oh my!
|
||||
if ($bot && isset($_GET['sid']))
|
||||
{
|
||||
send_status_line(301, 'Moved Permanently');
|
||||
redirect(build_url(array('sid')));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user