An open API service indexing awesome lists of open source software.

https://github.com/humanmade/mercator-redirect

Redirect handler for mapped domains
https://github.com/humanmade/mercator-redirect

Last synced: about 1 year ago
JSON representation

Redirect handler for mapped domains

Awesome Lists containing this project

README

          

# 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
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:

```php