This plugin is outdated and might not be supported anymore
Force Domain Redirect

Force Domain Redirect

Details
View on WordPress

Redirects http://somedomain.tld to http://someotherdomain.tld

Assuming you have 2 or more domains in use for a single WordPress site. This plugin forces the use of only one no matter which is entered in the address bar.

If, for some reason, your host won’t automatically redirect from one domain to another, then this plugin will do it. It checks the URL used to access the site and does a 301 redirect if incorrect.

In theory htaccess should do this, but in my case it didn’t. Perhaps because I am using domain aliases (or CNAMEs) and I wanted to insure that the main one was always in use, even when accessed using old links.

Details

Plugin code:
force-domain-redirect
Plugin version:
0.3
Author:
Outdated:
Yes
WP version:
3.0 or higher
PHP version:
or higher
Test up to WP version:
5.8.10
Total installations:
200
Last updated:
2022-01-20
Rating:
Times rated:
4
301
domain
redirect
uri
url