{"id":381,"date":"2025-06-10T08:48:18","date_gmt":"2025-06-10T07:48:18","guid":{"rendered":"https:\/\/www.speedhub.eu\/blog\/?p=381"},"modified":"2025-06-10T09:13:47","modified_gmt":"2025-06-10T08:13:47","slug":"how-to-force-https-www-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.speedhub.eu\/blog\/2025\/06\/10\/how-to-force-https-www-in-cpanel\/","title":{"rendered":"How to force https:\/\/www in cPanel"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"370\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2021\/03\/SSL-Certificate-https.jpg\" alt=\"SSL Certificate\" class=\"wp-image-61\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2021\/03\/SSL-Certificate-https.jpg 741w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2021\/03\/SSL-Certificate-https-300x150.jpg 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to redirect all incoming requests from http to https, and besides this want to also redirect all redirects from domain.tld to www.domain.tld but the .htaccess is not for you. Here are the steps to achieve this from inside cPanel:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Force http requests to go to https from cPanel<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Domains menu and select &#8220;Domains&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"321\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1-1024x321.png\" alt=\"domain menu cpanel\" class=\"wp-image-388\" style=\"width:635px;height:auto\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1-1024x321.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1-300x94.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1-768x241.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1-1536x482.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain1.png 1612w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now the desired domain unde &#8220;Force HTTPS Redirect&#8221; click on the switch next to &#8220;Off&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"71\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-1024x71.png\" alt=\"domain https activation\" class=\"wp-image-387\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-1024x71.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-300x21.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-768x53.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-1536x106.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain2-2048x141.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You will receive a confirmation notification to confirm the activation for forced HTTPS Redirect<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"145\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain3-1024x145.png\" alt=\"\" class=\"wp-image-386\" style=\"width:438px;height:auto\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain3-1024x145.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain3-300x43.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain3-768x109.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain3.png 1030w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Force non-www requests to www.domain.tld responses from cPanel<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next to activate the redirect of all non-www requests to www.domain.tld click in &#8220;Manage&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"61\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-1024x61.png\" alt=\"\" class=\"wp-image-385\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-1024x61.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-300x18.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-768x46.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-1536x92.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain4-2048x123.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the next screen go to &#8220;Modify the Redirects&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-1024x426.png\" alt=\"\" class=\"wp-image-384\" style=\"width:721px;height:auto\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-1024x426.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-300x125.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-768x319.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-1536x639.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain5-2048x852.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the current screen make sure you set as following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Type&#8221; Permanent (301)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;https?:\/\/&#8221; select from the list the root domain<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;\/&#8221; would remain empty if the root domain files are directly in \/public_html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Redirects to&#8221; here type the domain in the form  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;www. Redirection&#8221; set it to Do Not Redirect www.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and click on &#8220;Add&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"751\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6-1024x751.png\" alt=\"\" class=\"wp-image-390\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6-1024x751.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6-300x220.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6-768x563.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6-1536x1127.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain6.png 1780w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A short confirmation will be seen that the redirect is now set. And in the Redirect list an entry line the one bellow will appear &#8211; please keep in mind that the domain.tld set here is your domain and not the one in the actual picture here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"169\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-1024x169.png\" alt=\"\" class=\"wp-image-389\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-1024x169.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-300x49.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-768x126.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-1536x253.png 1536w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/06\/domain7-2048x337.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you need to redirect all incoming requests from http to https, and besides this want to also redirect all redirects from domain.tld to www.domain.tld but the .htaccess is not for you. Here are the steps to achieve this from&hellip; <a href=\"https:\/\/www.speedhub.eu\/blog\/2025\/06\/10\/how-to-force-https-www-in-cpanel\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[19,35],"class_list":["post-381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting","tag-cpanel","tag-force-https"],"_links":{"self":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":3,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions\/393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}