Total Control Over Your Regional Traffic
Region Redirect allows site administrators to redirect visitors from selected U.S. states or foreign countries. It integrates seamlessly with Cloudflare to determine a user's location, giving you a simple yet powerful way to customize content delivery for different audiences.
Important Requirement: This plugin requires your website to be running behind Cloudflare. It relies on the CF-Region-Code and CF-IPCountry headers provided by the Cloudflare network to function correctly.
Core Features
- U.S. State-Based Redirects: Redirect visitors from any of the 50 U.S. states.
- Country-Based Redirects: Set up redirects for over 40 major countries.
- Custom Destination URLs: Define a unique redirect URL for every state and country.
- Simple toggle controls: Easily enable or disable any redirect rule with a single click.
- User-Friendly Settings: All options are managed on a single, clear settings page within your WordPress dashboard.
- Lightweight & Secure: Built with performance and security in mind, with proper data sanitization.
Easy Installation
- Download the plugin zip file and upload the
region-redirect-managerfolder to your/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in your WordPress dashboard.
- Go to Settings → Region Redirect to configure your redirection rules.
Frequently Asked Questions
Where do I configure the redirection rules?
All configuration is handled in your WordPress admin dashboard. Navigate to Settings → Region Redirect to find a complete list of states and countries where you can enable redirects and set destination URLs.
Which Cloudflare headers are used?
The plugin uses two specific headers sent by Cloudflare:
CF-Region-Codefor identifying the visitor's U.S. state (e.g.,TXfor Texas).CF-IPCountryfor identifying the visitor's country (e.g.,DEfor Germany).
License Information
Region Redirect is open-source software licensed under the GPLv2 (or later). You are free to use, study, modify, and redistribute this plugin as you see fit, in accordance with the license terms.