{"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"],"_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}]}}