diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-04-09 18:24:16 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-04-09 18:24:16 +0100 |
| commit | 0cd4a887a14f56bc1f5343cc61f20f3436e13b85 (patch) | |
| tree | 64c34f30163db169275afebb829fde45042d3031 /family.php | |
| parent | 3aed5063d862f90236e6b6e6a4c187905a8bcebb (diff) | |
| download | webtrees-0cd4a887a14f56bc1f5343cc61f20f3436e13b85.tar.gz webtrees-0cd4a887a14f56bc1f5343cc61f20f3436e13b85.tar.bz2 webtrees-0cd4a887a14f56bc1f5343cc61f20f3436e13b85.zip | |
Fix: #2369 - legacy URLs should send a permanent redirect instead of displaying the page
Diffstat (limited to 'family.php')
| -rw-r--r-- | family.php | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |
