by Jörn Lund.
Set up redirects for Multisite-Blogs.
WP Multisite plugin to maintain URL-redirects for Blogs.
/and click “Add”.
If you want to redirect with URL path appended (e.g. from
some-real-blog.tld/some/path), add this to your
define( 'WPMU_BLOG_ALIAS_REDIRECT_WITH_PATH', true );
Warning: The domain matches the site URL of this blog: The Blog is using the domain name as Site URL.
Error: The domain is already used by another site: A different Blog is already using the domain as Site URL. Eiter Remove the alias from the sblog you are currently workin on, or from the other one.
The domain is unreachable: There is likely an error in your DNS or your Webserver configuration. Use
nslookup from he command line or whatsmydns.net to check the DNS-Settings.
The domain or a redirect does not point to this blog: Following all redirects did not end up on your WordPress-Site, but somewhere else. There is likely an error in your DNS or your Webserver configuration.
List alias domains for blog-id 123
wp alias-domains list --blog_id=123
Output minified json of all aliases
wp alias-domains list --format=json --compact=2
Output csv including the header row but omitting other messages into file
wp alias-domains list --format=csv --compact > alias-list.csv
wp alias-domains add --blog_id=123 --domain_alias=quux.foobar.tld
Remove a specific alias
wp alias-domains remove --domain_alias=quux.foobar.tld
Remove all aliases for blog 123
wp alias-domains remove --blog_id=123
wp alias-domains test --domain_alias=quux.foobar.tld<h3>Development</h3>
Please head over to the source code on Github.
Follow the standard WordPress plugin installation procedere.
The installer will:
1. Create a database table
2. Create a file
wp-content/sunrise.php or append its PHP to it, if the file already exists.
define( 'SUNRISE', true ); in your wp-config.
Please use the issues section in the GitHub-Repository.
I will most likely not maintain the forum support forum on wordpress.org. Anyway, other users might have an answer for you, so it’s worth a shot.
Please post an issue in the GitHub-Repository
Thanks! As a well trained person living in a rich country there is little more I need.
The majority on the other hand is not doing very well. And because this plugin is about redirection, I’d like to point your attention to the several refugee crises taking place everwhere around the world.
If my little piece of software was able to help you, please consider helping others and place a donation at the UNHCR.
blog_alias_createdwas called with a wrong argument