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
- Host: GitHub
- URL: https://github.com/humanmade/mercator-redirect
- Owner: humanmade
- License: gpl-3.0
- Created: 2016-09-20T14:35:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T15:13:21.000Z (about 6 years ago)
- Last Synced: 2025-06-30T16:14:53.061Z (about 1 year ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 15
- Watchers: 27
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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