Email Redirect
A WordPress plugin that redirects users to custom URLs based on their email domain. Features widget support, shortcodes, an admin settings page for domain-to-URL mappings, and intelligent subdomain matching with fallback to main domains.
by Roy Boverhof · github.com/latinvm/wordpress-email-redirect · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/latinvm/wordpress-email-redirect/archive/refs/heads/main.zipFrom the readme
Email Redirect WordPress Plugin
Description
This WordPress plugin redirects users to URLs based on their email domain. Users enter their email address in a form, and the plugin automatically opens the appropriate URL based on domain mappings you configure.
Features
- Widget-based email input form
- Shortcode support for inline placement in posts and pages
- Admin settings page for easy domain-to-URL configuration
- Subdomain matching with priority over main domain matches
- Popup window with fallback link if popups are blocked
- AJAX-based submission for smooth user experience
- Input validation for email addresses
Installation
1. Create a folder named email-redirect in your WordPress wp-content/plugins/ directory
2. Copy all plugin files into this folder:
- email-redirect.php (main plugin file)
- widget.php
- script.js
- style.css
- admin-script.js
- admin-style.css
- languages/ (folder with translation files)
3. Activate the plugin through the WordPress admin panel (Plugins Installed Plugins)
Compiling Translations (optional)
If you modify the .po translation files, regenerate the compiled .mo files:
Configuration
Setting up Domain Mappings
1. Go t