{"id":3757,"date":"2021-12-31T08:21:18","date_gmt":"2021-12-31T08:21:18","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=3757"},"modified":"2021-12-31T08:21:18","modified_gmt":"2021-12-31T08:21:18","slug":"smartest-method-to-redirect-non-www-urls-to-www","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/","title":{"rendered":"Smartest Method to Redirect non-WWW URLs to WWW?"},"content":{"rendered":"<p>In this post we will see the best method for redirecting non-WWW URLs to the WWW<\/p>\n<p>1. Access your root account by using your email (or login) and password.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3758\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-1-300x289.png\" alt=\"redirect-plesk-1\" width=\"322\" height=\"310\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-1-300x289.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-1.png 322w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/p>\n<p>If you log in as a <strong>super admin<\/strong>, cPanel sends you to the admin dashboard first, but if you join in as a user, cPanel takes you directly to your account\u2019s control panel.<\/p>\n<p>2. From the admin dashboard Click <strong>List Accounts<\/strong> to go to your control panel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3759\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-2-300x87.png\" alt=\"redirect-plesk-2\" width=\"781\" height=\"226\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-2-300x87.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-2-768x222.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-2.png 781w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>3. Browse through your account listings until you find the account for which you want to log into the cPanel account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3760\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-3-300x52.png\" alt=\"redirect-plesk-3\" width=\"1024\" height=\"176\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-3-300x52.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-3-768x132.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-3.png 1024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>4. To reveal a drop-down menu Click the <strong>Actions<\/strong> button, then choose <strong>Login<\/strong> to access the account\u2019s control panel.<\/p>\n<p>5. After that open the <strong>File Manager program<\/strong>, Click <strong>File manager<\/strong> in the <strong>FILES<\/strong> section of the control panel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3761\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-4-300x63.png\" alt=\"redirect-plesk-4\" width=\"989\" height=\"208\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-4-300x63.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-4-768x162.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-4.png 989w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><\/p>\n<p>Look for your domain\u2019s root directory in the file manager, and open it.<\/p>\n<p>6. If for your main domain you\u2019re putting up a redirect , the root directory should be the public_html.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3762\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-5-300x263.png\" alt=\"redirect-plesk-5\" width=\"336\" height=\"294\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-5-300x263.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-5.png 336w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<p>7. Find a file named .<strong>htaccess<\/strong> within the root directory, right-click the file to reveal a menu, then select <strong>Edit<\/strong> to open the editor<\/p>\n<p>8. Now, into the editor <strong>copy and paste your redirect rule<\/strong> and save.<\/p>\n<p>And, add the below code to redirect from <strong>non-www URL to www URL:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>RewriteEngine on\r\nRewriteCond %{HTTP_HOST} ^yoursite.com \r\nRewriteRule (.*) https:\/\/www.yoursite.com\/$1 [R=301,L]<\/code><\/pre>\n<p>Save the .htaccess file.<\/p>\n<p>After that, without the www type your URL in your browser to confirm it\u2019s redirecting to the <strong>www version<\/strong>.<\/p>\n<p>Kindly reach out to our support If you need help creating this redirect, and we\u2019ll be available to help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we will see the best method for redirecting non-WWW URLs to the WWW 1. Access your root account by using your email (or login) and password. If you log in as a super admin, cPanel sends you to the admin dashboard first, but if you join in as a user, cPanel takes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3757","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Smartest Method to Redirect non-WWW URLs to WWW? - OWS KB<\/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:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smartest Method to Redirect non-WWW URLs to WWW? - OWS KB\" \/>\n<meta property=\"og:description\" content=\"In this post we will see the best method for redirecting non-WWW URLs to the WWW 1. Access your root account by using your email (or login) and password. If you log in as a super admin, cPanel sends you to the admin dashboard first, but if you join in as a user, cPanel takes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-31T08:21:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-1-300x289.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/12\/redirect-plesk-1.png\",\"width\":322,\"height\":310,\"caption\":\"redirect-plesk-1\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\",\"name\":\"Smartest Method to Redirect non-WWW URLs to WWW? - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/#primaryimage\"},\"datePublished\":\"2021-12-31T08:21:18+00:00\",\"dateModified\":\"2021-12-31T08:21:18+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/smartest-method-to-redirect-non-www-urls-to-www\/\",\"name\":\"Smartest Method to Redirect non-WWW URLs to WWW?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=3757"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3757\/revisions"}],"predecessor-version":[{"id":3763,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/3757\/revisions\/3763"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=3757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=3757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=3757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}