{"id":491,"date":"2007-11-10T13:01:49","date_gmt":"2007-11-10T20:01:49","guid":{"rendered":"http:\/\/www.pdxtc.com\/wpblog\/ask-scott\/hi-scott-i-have-a-new-domain-name-wwwclick4promoscom-less-than-a-month-old-this-domain-is-coming-up-in-google-with-out-the-www-is-this-a-problem-and-how-would-i-fix-it-thanks-rick"},"modified":"2008-04-11T08:49:16","modified_gmt":"2008-04-11T15:49:16","slug":"www-or-non-www-canonical-problem","status":"publish","type":"page","link":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/","title":{"rendered":"www-or-non-www-canonical-problem"},"content":{"rendered":"<div class=\"faq\">\r\n\t\t\t<div class=\"faq_approve\" id=\"fr_16\">\r\n\t<p>Rating: +0<\/p>\r\n\r\n\t\t<a href=\"#\" title=\"This answer is good\" onclick=\"faq_rate(6,16,0); return false\">\r\n\t\t<img loading=\"lazy\" decoding=\"async\" align=\"top\" src=\"https:\/\/www.pdxtc.com\/wpblog\/wp-content\/plugins\/faq-tastic\/images\/positive.png\" width=\"14\" height=\"14\" alt=\"Positive\"\/>\r\n\t<\/a>\r\n\t<a href=\"#\" title=\"This answer is bad\" onclick=\"faq_rate(6,16,1); return false\">\r\n\t\t<img loading=\"lazy\" decoding=\"async\" align=\"top\" src=\"https:\/\/www.pdxtc.com\/wpblog\/wp-content\/plugins\/faq-tastic\/images\/negative.png\" width=\"14\" height=\"14\" alt=\"Negative\"\/>\r\n\t<\/a>\r\n\t<\/div>\t\r\n\t<div class=\"answer\">\r\n\t\t<p>The reason it's may be a \"problem\" is because the search engines see subdomains as separate domains, and the www is no exception.  <\/p>\n<p>Therefore, you run the risk of aparrently having duplicate pages in two separate areas of your website. This is called a \"canonical\" issue, and there is a fix...<\/p>\n<p>To avoid a possible duplicate content penalty, and to ensure that you have the same PageRank on both versions, I prefer to force all non-www. requests to 301 (permanently) redirect to the www version. <\/p>\n<p>By doing a 301 instead of a 302 or other redirection method, you retain all inbound link value and PageRank. (However, PR may have to run through an update cycle before you can see it in the toolbar)<\/p>\n<p>Built inside Google's Webmaster tools is a tool so that you can tell Google manually which version you prefer it to use.<br \/>\nSimply log in, and go to tools - set preferred domains - and from there.  You just checked the box and hit okay.<\/p>\n<p>That fix takes awhile to kick in with Google, and it really doesn't do anything for the other engines or for your visitors, who still see both URLs.<\/p>\n<p>I manually edit my .htaccess file in the root of my domain to include these lines to force a 301 redirect.<\/p>\n<p>Here it is - (make sure you change the domain name!)<\/p>\n<p>RewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^pdxtc.com [NC]<br \/>\nRewriteRule ^(.*)$ http:\/\/www.pdxtc.com\/$1 [L,R=301]<\/p>\n<p>Always make a backup of your htaccess before editing, just to be safe.<\/p>\n<p>This is of course assuming you are on an an Apache server that supports mod rewrite, which most do. <\/p>\n<p>If you are on a Windows server, that's a different can of worms, and this fix won't work, but the principle is the same.  If anyone needs a Windows answer, just comment here...<\/p>\n\t<\/div>\r\n\r\n\t\r\n\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Rating: +0 The reason it&#8217;s may be a &#8220;problem&#8221; is because the search engines see subdomains as separate domains, and the www is no exception. Therefore, you run the risk of aparrently having duplicate pages in two separate areas of your website. This is called a &#8220;canonical&#8221; issue, and there is a fix&#8230; To avoid [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":0,"parent":360,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-491","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>www-or-non-www-canonical-problem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"www-or-non-www-canonical-problem\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/\" \/>\n<meta property=\"og:site_name\" content=\"Scott Hendison&#039;s Old Search Commander Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SearchCommander\" \/>\n<meta property=\"article:modified_time\" content=\"2008-04-11T15:49:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@shendison\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/www-or-non-www-canonical-problem\\\/\",\"url\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/www-or-non-www-canonical-problem\\\/\",\"name\":\"www-or-non-www-canonical-problem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/#website\"},\"datePublished\":\"2007-11-10T20:01:49+00:00\",\"dateModified\":\"2008-04-11T15:49:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/www-or-non-www-canonical-problem\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/www-or-non-www-canonical-problem\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/www-or-non-www-canonical-problem\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SEO Questions &#8211; Asked &#038; Answered\",\"item\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/ask-scott\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"www-or-non-www-canonical-problem\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/#website\",\"url\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/\",\"name\":\"Scott Hendison&#039;s Old Search Commander Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pdxtc.com\\\/wpblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"www-or-non-www-canonical-problem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/","og_locale":"en_US","og_type":"article","og_title":"www-or-non-www-canonical-problem","og_url":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/","og_site_name":"Scott Hendison&#039;s Old Search Commander Blog","article_publisher":"https:\/\/www.facebook.com\/SearchCommander","article_modified_time":"2008-04-11T15:49:16+00:00","twitter_card":"summary_large_image","twitter_site":"@shendison","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/","url":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/","name":"www-or-non-www-canonical-problem","isPartOf":{"@id":"https:\/\/www.pdxtc.com\/wpblog\/#website"},"datePublished":"2007-11-10T20:01:49+00:00","dateModified":"2008-04-11T15:49:16+00:00","breadcrumb":{"@id":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/www-or-non-www-canonical-problem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pdxtc.com\/wpblog\/"},{"@type":"ListItem","position":2,"name":"SEO Questions &#8211; Asked &#038; Answered","item":"https:\/\/www.pdxtc.com\/wpblog\/ask-scott\/"},{"@type":"ListItem","position":3,"name":"www-or-non-www-canonical-problem"}]},{"@type":"WebSite","@id":"https:\/\/www.pdxtc.com\/wpblog\/#website","url":"https:\/\/www.pdxtc.com\/wpblog\/","name":"Scott Hendison&#039;s Old Search Commander Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pdxtc.com\/wpblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/pages\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":0,"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/pages\/491\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/pages\/360"}],"wp:attachment":[{"href":"https:\/\/www.pdxtc.com\/wpblog\/wp-json\/wp\/v2\/media?parent=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}