{"id":5640,"date":"2014-04-04T15:16:32","date_gmt":"2014-04-04T15:16:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/site-migration-and-seo-impact-collection-of-common-programming-errors\/"},"modified":"2014-04-04T15:16:32","modified_gmt":"2014-04-04T15:16:32","slug":"site-migration-and-seo-impact-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/site-migration-and-seo-impact-collection-of-common-programming-errors\/","title":{"rendered":"Site migration and SEO impact-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;d greatly appreciate a response on the following question relating to site migration and SEO impact. Here&#8217;s some background on how my domain name and site is currently configured:<\/p>\n<p>My domain name provider has the following settings:<\/p>\n<ul>\n<li>host name <code>@<\/code> is an A NAME record and points to IP address <code>x.x.x.x<\/code><\/li>\n<li>host name <code>www<\/code> is an A NAME record and points to IP address <code>x.x.x.x<\/code><\/li>\n<li>sub-domain host name <code>new.example.com<\/code> is an A NAME record and points to IP address <code>x.x.x.x<\/code><\/li>\n<\/ul>\n<p>My hosting provider has the following settings:<\/p>\n<ul>\n<li>host record <code>@<\/code> is an A NAME record and points to IP address <code>x.x.x.x<\/code>, folder <code>home\/public_html\/old<\/code><\/li>\n<li>host record <code>www<\/code> is a C NAME record and points to <code>example.com<\/code><\/li>\n<li>sub-domain host record <code>new.example.com<\/code> points to <code>home\/public_html\/new<\/code><\/li>\n<\/ul>\n<p>I want to:<\/p>\n<ul>\n<li>point the domain (<code>example.com<\/code> AND <code>www.example.com<\/code>) to the content hosted under folder <code>home\/public_html\/new<\/code>, which is currently the content directory for <code>new.example.com<\/code><\/li>\n<li>retire the content hosted under folder <code>home\/public_html\/old<\/code><\/li>\n<li>retire the sub-domain host record <code>new.example.com<\/code><\/li>\n<\/ul>\n<p>I believe the easiest method of doing this, is: removing the sub-domain host record <code>new.example.com<\/code>; and changing the following line in the <em>.htaccess<\/em> file in <code>home\/public_html<\/code> from<\/p>\n<pre><code># Change 'subdirectory' to be the directory you will use for your main domain.\nRewriteCond %{REQUEST_URI} !^\/old\/\n<\/code><\/pre>\n<p>to<\/p>\n<pre><code># Change 'subdirectory' to be the directory you will use for your main domain.\nRewriteCond %{REQUEST_URI} !^\/new\/\n<\/code><\/pre>\n<p>But I don&#8217;t understand how this will impact my SERP &#8211; ideally, I&#8217;d like it to remain the same.<\/p>\n<p>Research on this topic resulted in the following Google page, which was no help, and this related StackExchange question, which suggests that this should not affect my SERP (at least, not permanently). But I wanted to make certain with a more specific example, and hopefully contribute to the community at the same time.<\/p>\n<p>I&#8217;d appreciate any feedback on this. Is there a better\/recommended method to migrate sites this way? Is there an SEO impact?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d greatly appreciate a response on the following question relating to site migration and SEO impact. Here&#8217;s some background on how my domain name and site is currently configured: My domain name provider has the following settings: host name @ is an A NAME record and points to IP address x.x.x.x host name www is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5640","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5640"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5640\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}