{"id":31414,"date":"2014-09-01T09:35:46","date_gmt":"2014-09-01T09:35:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/force-domain-redirect\/"},"modified":"2022-01-20T12:20:38","modified_gmt":"2022-01-20T12:20:38","slug":"force-domain-redirect","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/force-domain-redirect\/","author":14019024,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"trunk","tested":"5.8.13","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Force Domain Redirect","header_author":"M Williams","header_description":"","assets_banners_color":"","last_updated":"2022-01-20 12:20:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/nimbus.agency","header_author_uri":"http:\/\/nimbus.agency","rating":4,"author_block_rating":0,"active_installs":200,"downloads":6659,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":3},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[932,555,727,1760,538],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-31414","plugin","type-plugin","status-publish","hentry","plugin_tags-932","plugin_tags-domain","plugin_tags-redirect","plugin_tags-uri","plugin_tags-url","plugin_committers-nimusdigital"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/force-domain-redirect.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Redirects http:\/\/somedomain.tld to http:\/\/someotherdomain.tld<\/p>\n\n<p>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.<\/p>\n\n<p>If, for some reason, your host won\u2019t 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.<\/p>\n\n<p>In theory htaccess should do this, but in my case it didn\u2019t. 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.<\/p>\n\n<!--section=installation-->\n<p>Copy the plugin file to your Wordpress plugins directory. That's it. No configuration necessary... just make sure the domain you want to force is listed under SETTINGS &gt; GENERAL &gt; Site Address (URL)<\/p>\n\n<!--section=changelog-->\n<p>0.3 Compatibilty with WP5\n    Use HOME URL instead of SITE URL\n0.2 Update to handle https\n0.1 Initial version. Seems to do what\\'s needed.<\/p>","raw_excerpt":"Forces your Wordpress site to load on the domain registered in the WP admin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31414"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nimusdigital"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31414"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31414"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31414"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31414"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31414"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}