com web/php: Redirect AMQP pages to its github page: error.php
| From: | Philip Olson | Date: | Thu, 15 May 2014 18:07:41 +0000 |
| Subject: | com web/php: Redirect AMQP pages to its github page: error.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18916@lists.php.net to get a copy of this message | ||
Commit: 636a531aa68918de34ee4480f812e67679d0762a
Author: philip <philip@roshambo.org> Thu, 15 May 2014 11:07:41 -0700
Parents: 6e1ead211415c4bce472f1c9a653379d44eedb04
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=636a531aa68918de34ee4480f812e67679d0762a
Log:
Redirect AMQP pages to its github page
Changed paths:
M error.php
Diff:
diff --git a/error.php b/error.php
index 14423a7..17ad736 100644
--- a/error.php
+++ b/error.php
@@ -265,6 +265,13 @@ if (isset($manual_page_moves[$URI])) {
mirror_redirect("/manual/$match[1]/" . $manual_page_moves[$match[2]] .
".php");
}
+// The AMQP manual was removed awhile back, maybe this will prevent more bug reports
+// Feel free to remove me on around May 15, 2015
+if (false !== stripos($URI, 'amqp')) {
+ status_header(404);
+ mirror_redirect('https://github.com/videlalvaro/php-amqplib');
+}
+
// ============================================================================
// Define shortcuts for PHP files, manual pages and external redirects
$uri_aliases = array (