Download the PHP package humanmade/mercator-redirect without Composer
On this page you can find all versions of the php package humanmade/mercator-redirect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download humanmade/mercator-redirect
More information about humanmade/mercator-redirect
Files in humanmade/mercator-redirect
Package mercator-redirect
Short Description Redirect component for Mercator.
License GPL-2.0+
Homepage https://github.com/humanmade/Mercator-Redirect
Informations about the package mercator-redirect
Mercator Redirect
Redirect component for Mercator.
Redirects to the domain listed in the wp_blogs
table. With newer versions
of Mercator this should be treated as the primary domain.
The addon also supports redirecting to aliases for legacy data.
Requirements
Mercator requires WordPress 3.9 or newer for the new sunrise processes. Mercator also requires PHP 5.3+ due to the use of namespaced code.
Installation
Include the file redirect.php
from your sunrise.php
in the same way you include Mercator itself.
For example:
Filters
You can modify SSO behaviour for example in a local environment with the
following filters in sunrise.php
:
mercator.redirect.enabled
Defaults to true
mercator.redirect.admin.enabled
Defaults to false
mercator.redirect.legacy.enabled
Defaults to false
mercator.redirect.status.code
Defaults to 301
License
Mercator is licensed under the GPLv3 or later.
Credits
Created by Human Made for high volume and large-scale sites, such as Happytables. We run Mercator on sites with millions of monthly page views, and thousands of sites.
Written and maintained by Ryan McCue. Thanks to all our contributors.
Mercator builds on concepts from WPMU Domain Mapping, written by Donncha O'Caoimh, Ron Rennick, and contributors.
Mercator relies on WordPress core, building on core functionality added in WP27003. Thanks to all involved in the overhaul, including Andrew Nacin and Jeremy Felt.
Interested in joining in on the fun? Join us, and become human!