From 0cd4a887a14f56bc1f5343cc61f20f3436e13b85 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 9 Apr 2019 18:24:16 +0100 Subject: Fix: #2369 - legacy URLs should send a permanent redirect instead of displaying the page --- family.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'family.php') diff --git a/family.php b/family.php index d888b86ffa..7fda942ea9 100644 --- a/family.php +++ b/family.php @@ -19,4 +19,5 @@ declare(strict_types=1); $_GET['xref'] = $_GET['famid'] ?? ''; $_GET['route'] = 'family'; -require __DIR__ . '/index.php'; +header('HTTP/1.1 301 Moved Permanently'); +header('Location: index.php?' . http_build_query($_GET, '', '&', PHP_QUERY_RFC3986)); -- cgit v1.3