{"id":27655,"date":"2014-02-05T08:18:21","date_gmt":"2014-02-05T08:18:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/domain-sharding\/"},"modified":"2018-03-04T22:48:45","modified_gmt":"2018-03-04T22:48:45","slug":"domain-sharding","status":"closed","type":"plugin","link":"https:\/\/nb.wordpress.org\/plugins\/domain-sharding\/","author":187431,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"trunk","tested":"4.9.29","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Domain Sharding","header_author":"David Garcia","header_description":"","assets_banners_color":"","last_updated":"2018-03-04 22:48:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.seocom.es","header_author_uri":"","rating":4,"author_block_rating":0,"active_installs":40,"downloads":5187,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":"1","4":"1","5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3863,24479,187,794,21091],"plugin_category":[52,59],"plugin_contributors":[89440],"plugin_business_model":[],"class_list":["post-27655","plugin","type-plugin","status-closed","hentry","plugin_tags-cdn","plugin_tags-domain-sharding","plugin_tags-optimization","plugin_tags-speed","plugin_tags-wpo","plugin_category-performance","plugin_category-utilities-and-tools","plugin_contributors-sultanicq","plugin_committers-sultanicq"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/domain-sharding.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>We need to determine the subdomain pattern (ex: http:\/\/cdn-#.domain.tld ) substitution and the maximum number of subdomains we want to work with (ex: 5).<\/p>\n\n<p>The pattern will transform an url like this 'http:\/\/www.domain.tld\/img\/source1.jpg' to this new url structure 'http:\/\/cdn-X.domain.tld\/img\/source1.jpg' where X ranges from 1 to 5 (max).<\/p>\n\n<p>NOTE: If you have trouble accessing images using the new address because Wordpress asks you to register the domain then you must insert the following line in the file wp-config.php<\/p>\n\n<pre><code>include_once(ABSPATH.'wp-content\/plugins\/domain-sharding\/domain-sharding-alias.php'); \n<\/code><\/pre>\n\n<p>Then you need to be sure to set write permissions to the aliases folder located within the plugin directory.<\/p>\n\n<p>NOTE: You'll need to manually create the new A records for the subdomains in your DNS panel. They should have the same ip address of your main domain.<\/p>\n\n<p>Visit the <a href=\"http:\/\/www.seocom.es\/\">Seocom website<\/a> for more information about SEO or WPO optimization<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install \"Domain Sharding\" either via the WordPress.org plugin directory, or by uploading the files to your server inside the wp-content\/plugins folder of your WordPress installation.<\/li>\n<li>Activate \"Domain Sharding\" plugin via WordPress Settings.<\/li>\n<li>It's done. Easy, isn't it?<\/li>\n<\/ol>\n\n<p>NOTE: If you have trouble accessing images using the new address because Wordpress asks you to register the domain then you must insert the following line in the file wp-config.php<\/p>\n\n<pre><code>include_once(ABSPATH.'wp-content\/plugins\/domain-sharding\/domain-sharding-alias.php');\n<\/code><\/pre>\n\n<p>NOTE: You'll need to manually create the new A records for the subdomains in your DNS panel. They should have the same ip address of your main domain.<\/p>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>BugFix. Set \/ as path when empty path on home url.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>BugFix. Fix callback signature. Now check_domain_sharding expects a value parameter instead of by reference parameter.<\/li>\n<li>Works fine with PHP 7.X.X<\/li>\n<\/ul>\n\n<h4>1.1.9<\/h4>\n\n<ul>\n<li>BugFix. Allows saving configuration when used via https protocol.<\/li>\n<\/ul>\n\n<h4>1.1.8<\/h4>\n\n<ul>\n<li>Adds support for protocol less urls. The plugin now creates links that are unaware of http\/https protocol. Then these links use the main protocol of the page.<\/li>\n<\/ul>\n\n<h4>1.1.7<\/h4>\n\n<ul>\n<li>Fixes with url recognition.<\/li>\n<li>Avoid replacing leading double slash links.<\/li>\n<\/ul>\n\n<h4>1.1.6<\/h4>\n\n<ul>\n<li>Fixes subdomain verification process<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Fixes automagically guessed domain when working on Multisite environment.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Automagically try to guess the right value for the old domain variable.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Fixed re-activation detection when upgrading plugin.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Forced a reset of the domain variable to avoid problems if we detect an upgrade from a previous version.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Readme update with description and installation instructions.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Completely rewritten to conform with multisite blogs.<\/li>\n<li>Full domain pattern specification not just the subdomain.<\/li>\n<li>Note: Old users must review settings to avoid misconfiguration problems.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added the option to force a 301 to the main site domain if the blog is visited using a different address. This option tries to solve the SEO issue of visiting the blog using the Domain Sharding subdomains.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Added some tests to help us check for the validity of the desired subdomains. They are located in the Settings page.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>BugFix. The plugin now works with blogs not installed in the root domain.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added exclusions. Now we can ignore some urls to avoid transforming them.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Added instruccions to create A records for the new domains<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Install \"Domain Sharding\" either via the WordPress.org plugin directory, or by uploading the files to your server inside the wp-content\/plugins folder of your WordPress installation.<\/li>\n<li>Activate \"Domain Sharding\" plugin via WordPress Settings.<\/li>\n<li>It's done. Easy, isn't it?<\/li>\n<\/ol>\n\n<p>NOTE: If you have trouble accessing images using the new address because Wordpress asks you to register the domain then you must insert the following line in the file wp-config.php<\/p>\n\n<pre><code>include_once(ABSPATH.'wp-content\/plugins\/domain-sharding\/domain-sharding-alias.php');\n<\/code><\/pre>\n\n<p>NOTE: You'll need to manually create the new A records for the subdomains in your DNS panel. They should have the same ip address of your main domain.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"This plugin modify the url of the images to speed up the page browsing.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27655"}],"author":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sultanicq"}],"wp:attachment":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27655"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27655"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27655"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27655"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27655"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}