{"id":512,"date":"2013-07-15T17:32:43","date_gmt":"2013-07-16T00:32:43","guid":{"rendered":"http:\/\/www.ultimatewb.com\/blog\/?p=512"},"modified":"2024-01-29T14:39:31","modified_gmt":"2024-01-29T22:39:31","slug":"www-or-no-www-that-is-the-question","status":"publish","type":"post","link":"https:\/\/www.ultimatewb.com\/blog\/512\/www-or-no-www-that-is-the-question\/","title":{"rendered":"WWW or no WWW &#8211; That is the question"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/www-or-no-www.jpg\">    <picture>\n                <img src=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/www-or-no-www.jpg\"\n             srcset=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/www-or-no-www.jpg 620w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/www-or-no-www-300x163.jpg 300w\"             sizes=\"(max-width: 600px) 100vw, (max-width: 1200px) 75vw, 1200px\"\n             width=\"620\"\n             height=\"336\"\n             alt=\"www or no www\"\n             loading=\"lazy\"             decoding=\"async\"\n             class=\"wp-image-4548\" >\n    <\/picture>\n    <\/a><\/figure>\n\n\n<p>We are talking about whether your website is &#8220;www.your-website.com&#8221; or just &#8220;your-website.com&#8221; .\u00a0 You want your website to be accessible both ways of course, whether the user types in the &#8220;www&#8221; or not (most people won&#8217;t take the extra time to type what&#8217;s not necessary right?).\u00a0 You would lose traffic if you didn&#8217;t make your website accessible both ways.\u00a0 But you actually want your website to recognize one version as &#8220;the one&#8221;, and redirect the other to it.<\/p>\n<p>Why?\u00a0 SEO &#8211; search engine optimization &amp; search engine ranking.\u00a0 You want all the traffic you get for a page and for your website to be recognized as one &#8211; not divide your popularity in two for no reason, when it&#8217;s the same page\/the same content.\u00a0 Also, it is just better practice and will get rid of potential problems and issues in terms of interpreting and keeping track of your website statistics as you develop, manage, and grow your website.<\/p>\n<p>Which version to choose as &#8220;the one&#8221;?\u00a0 We go with the &#8220;www&#8221; version as &#8220;the one&#8221; and redirect to that.\u00a0 The reason is that &#8220;www&#8221; preceding your domain name is an indicator to most that this is a website, versus an email address, or something else.\u00a0 You see\u00a0&#8220;www&#8230;&#8221; on tv commercials and online ads as well, just for this reason.<\/p>\n<h2>How to redirect your website to use &#8220;www&#8221;<\/h2>\n<p>If you are using UltimateWB to design, create, and manage your website, the code to automatically redirect users to the &#8220;www&#8221; version of your website is provided in your .htaccess file &#8211; just follow the instructions there to activate it.\u00a0 We do like to share, so here&#8217;s the code for anyone else that hasn&#8217;t switched to UltimateWB yet!<\/p>\n<p>In your .htaccess file add the following code.\u00a0 If you don&#8217;t have a .htaccess file, open notepad or a similar program, copy\/paste this code, and save the file as .htaccess (type any, not &#8220;.txt&#8221;, utf-8).\u00a0 Then upload the file to your server.<\/p>\n<blockquote>\n<p>#start the rewrite engine<br \/>Options +FollowSymlinks<br \/>RewriteEngine on<br \/>RewriteBase \/<\/p>\n<p># replace &#8220;ultimatewb.com&#8221; with your domain name<br \/>RewriteCond %{HTTP_HOST} !^www. [NC]<br \/>RewriteRule ^(.*)$ https:\/\/www.ultimatewb.com\/$1 [R=301,L,QSA]<\/p>\n<\/blockquote>\n<p>FYI: &#8220;R=301&#8221; means it&#8217;s a permanent redirect, so search engines will index your pages as &#8220;www&#8230;..&#8221;.\u00a0 &#8220;L&#8221; means that if the rewrite condition applies, do just this rewrite rule for it.\u00a0 And the &#8220;QSA&#8221; carries over any variables passed with the url string.\u00a0 But all you have to do to the code is replace &#8220;ultimatewb.com&#8221; with your domain name.<\/p>\n<p>Do you &#8220;www&#8221; too?<\/p>\n<p>Are you ready to design &amp; build your own website? Learn more about\u00a0<a href=\"https:\/\/www.ultimatewb.com\/\">UltimateWB<\/a>! We also offer\u00a0<a href=\"https:\/\/www.ultimatewb.com\/web-design-packages\">web design packages<\/a>\u00a0if you would like your website designed and built for you.<\/p>","protected":false},"excerpt":{"rendered":"<p>We are talking about whether your website is &#8220;www.your-website.com&#8221; or just &#8220;your-website.com&#8221; .\u00a0 You want your website to be accessible both ways of course, whether the user types in the &#8220;www&#8221; or not (most people won&#8217;t take the extra time &hellip; <a href=\"https:\/\/www.ultimatewb.com\/blog\/512\/www-or-no-www-that-is-the-question\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[345,3,4],"tags":[375,405,235,404,403,400,10,12,11,401,402],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-domain-names","category-general","category-search-engine-optimization-seo","tag-htaccess","tag-301-redirect","tag-domain-name","tag-htaccess-sample-code","tag-redirect-sample-code","tag-redirect-to-www","tag-search-engine-optimization","tag-search-engine-ranking","tag-seo","tag-website-url","tag-www-vs-no-www"],"_links":{"self":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/512"}],"collection":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":3,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":4552,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions\/4552"}],"wp:attachment":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}