{"id":15482,"date":"2011-10-28T20:50:51","date_gmt":"2011-10-28T20:50:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/multidomain\/"},"modified":"2011-10-28T20:50:51","modified_gmt":"2011-10-28T20:50:51","slug":"multidomain","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/multidomain\/","author":8484387,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.2.3","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"MultiDomain","header_author":"Nathan Carnes","header_description":"","assets_banners_color":"","last_updated":"2011-10-28 20:50:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/github.com\/nathancarnes\/MultiDomain","header_author_uri":"http:\/\/carnesmedia.com","rating":4.3,"author_block_rating":0,"active_installs":300,"downloads":15462,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"5"},"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":[555,3013,44303],"plugin_category":[],"plugin_contributors":[80591],"plugin_business_model":[],"class_list":["post-15482","plugin","type-plugin","status-publish","hentry","plugin_tags-domain","plugin_tags-domains","plugin_tags-mirroring","plugin_contributors-nathancarnes","plugin_committers-nathancarnes"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/multidomain.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<ul>\n<li>Point multiple domains\/sub-domains at a single WordPress installation and maintain link integrity (i.e. if you're on http:\/\/foo.com, links will be http:\/\/foo.com\/bar, and if you're http:\/\/baz.com links will be http:\/\/baz.com\/bar)<\/li>\n<li>Overwrite site title, description, or theme per domain<\/li>\n<li>Customize content per domain using the [MultiDomain&#095;if] and [MultiDomain&#095;else] shortcodes<\/li>\n<\/ul>\n\n<p>If you need more customization between domains, WordPress MU is a better option.<\/p>\n\n<h3>Configuration Examples<\/h3>\n\n<p>Note that you usually won't need to configure your primary domain -- MultiDomain will automatically fall back to your WordPress defaults if not configuration is present for a domain.<\/p>\n\n<h4>Basic<\/h4>\n\n<p>In config.php:<\/p>\n\n<pre><code>&lt;?php\n  $domains = array(\n    array(\n      'domain' =&gt; 'myalternatedomain.com',\n      'siteurl' =&gt; 'http:\/\/myalternatedomain.com',\n      'home' =&gt; 'http:\/\/myalternatedomain.com'\n    )\n  );\n?&gt;\n<\/code><\/pre>\n\n<h4>More Complex<\/h4>\n\n<p>In config.php:<\/p>\n\n<pre><code>&lt;?php\n  $domains = array(\n    array(\n      'domain' =&gt; 'example1.com',\n      'siteurl' =&gt; 'http:\/\/example1.com',\n      'home' =&gt; 'http:\/\/example1.com'\n    ),\n    array(\n      'domain' =&gt; 'example2.com',\n      'siteurl' =&gt; 'http:\/\/example2.com',\n      'home' =&gt; 'http:\/\/example2.com',\n      'blogname' =&gt; 'Example 2'\n    ),\n    array(\n      'domain' =&gt; 'example3.com',\n      'siteurl' =&gt; 'http:\/\/example3.com',\n      'home' =&gt; 'http:\/\/example3.com',\n      'template' =&gt; 'twentyten',\n      'blogname' =&gt; 'I have a different name...',\n      'blogdescription' =&gt; '..and description'\n    )\n  );\n?&gt;&lt;h3&gt;Tag Usage&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>The provided short codes let you tailor your content per domain if needed. [MultiDomain&#095;else] and [MultiDomain&#095;default] are identical.<\/p>\n\n<pre><code>[MultiDomain_if domain=\"example1.com\"]\n  Content only people visiting on example1.com will see.\n[\/MultiDomain_if]\n\n[MultiDomain_else]\n  Content anyone visiting on any other domain will see.\n[\/MultiDomain_else]\n\nNormal content everyone will see.\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Unzip and upload to your plugins directory, or install from admin<\/li>\n<li>Activate<\/li>\n<li>Edit config.php to your liking using the admin Plugin Editor or your favorite FTP program<\/li>\n<li>Profit!<\/li>\n<\/ol>","raw_excerpt":"Allows multiple domains to be pointed at a single WordPress install with customization for each.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15482","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=15482"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nathancarnes"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15482"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15482"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15482"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15482"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15482"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}