mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/9908] Send 301 before stripping SID so bots do (hopefully) not revisit.
This commit is contained in:
commit
7f7a94e5dc
1 changed files with 1 additions and 0 deletions
|
@ -607,6 +607,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