PHPackages                             humanmade/mercator-redirect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. humanmade/mercator-redirect

ActiveWordpress-muplugin

humanmade/mercator-redirect
===========================

Redirect component for Mercator.

0.1.0(7y ago)1511.4k10[1 PRs](https://github.com/humanmade/Mercator-Redirect/pulls)GPL-2.0+PHP

Since Dec 4Pushed 6y ago25 watchersCompare

[ Source](https://github.com/humanmade/Mercator-Redirect)[ Packagist](https://packagist.org/packages/humanmade/mercator-redirect)[ Docs](https://github.com/humanmade/Mercator-Redirect)[ RSS](/packages/humanmade-mercator-redirect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Mercator Redirect
=================

[](#mercator-redirect)

Redirect component for [Mercator](https://github.com/humanmade/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
------------

[](#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
------------

[](#installation)

Include the file `redirect.php` from your `sunrise.php` in the same way you include Mercator itself.

For example:

```
