mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue