{"id":2573,"date":"2021-03-01T06:52:14","date_gmt":"2021-03-01T06:52:14","guid":{"rendered":"https:\/\/www.arzhost.com\/?p=1816"},"modified":"2023-10-04T14:59:26","modified_gmt":"2023-10-04T14:59:26","slug":"how-to-redirect-http-to-https","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/","title":{"rendered":"how to redirect http to https"},"content":{"rendered":"<p>If you have SSL certificate on your website. Then you can automatically redirect your visitor&#8217;s HTTP to HTTPS for a secure connection. In HTTPS \u2018S\u2019 shows that your communication is secure. But <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/\"><strong>how to redirect HTTP to HTTPS<\/strong><\/a><\/span>?<\/p>\n<p>For example:<\/p>\n<p><strong><a href=\"https:\/\/arzhost.com\">https:\/\/arzhost.com<\/a><\/strong><\/p>\n<p>In this link\u2018s\u2019 shows that Arzhost website is secure.<\/p>\n<p>There is nothing to do from your side. you enforce the site to use secure URL.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#how_to_redirect_http_to_https\" >how to redirect http to https<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#i\" >&lt;ifmudule mod_rewrite.c&gt;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewriteengine_on\" >Rewriteengine on<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewritebase\" >Rewritebase \/<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewriterule_indexphp_%E2%80%93_L\" >Rewriterule \u00a0^index\\.php$\u00a0 &#8211; [ L ]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewritecond_REQUEST_FILENAME_%E2%80%93_f\" >Rewritecond \u00a0%{REQUEST_FILENAME}\u00a0 ! \u2013 f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewritecond_REQUEST_FILENAME_%E2%80%93_d\" >Rewritecond \u00a0%{REQUEST_FILENAME}\u00a0 ! &#8211;\u00a0 d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#Rewriterule_indexphp_L\" >Rewriterule \u00a0\u00a0\u00a0\u00a0\u00a0.\u00a0\u00a0 \/index.php\u00a0\u00a0 [ L ]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arzhost.com\/blogs\/how-to-redirect-http-to-https\/#i-2\" >&lt;\/ifmodule&gt;<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"how_to_redirect_http_to_https\"><\/span>how to redirect http to https<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>For main domain enforce the SSL:<\/strong><\/p>\n<ol>\n<li>Login to <b>cPanel<\/b><\/li>\n<li>In domain side click on <strong>domains <\/strong><\/li>\n<\/ol>\n<p><strong> <img fetchpriority=\"high\" decoding=\"async\" title=\"domain section\" class=\"size-full wp-image-1817 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/domain-section.png\" alt=\"domain section\" width=\"815\" height=\"169\" \/><\/strong><\/p>\n<ol start=\"3\">\n<li>After click on <strong>domains <\/strong>page is open and you can see that there is an option you can enable or disable HTTPS redirect. you should leave to enable it. If there is no option to on it. Then SSL is not installed in your domain. Make sure that SSL is install or not if not installed then installed it.<\/li>\n<\/ol>\n<p><img decoding=\"async\" title=\"FileZilla Connection Closed by Server\" class=\" wp-image-1818 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/enable-https.png\" alt=\"enable https\" width=\"912\" height=\"407\" \/><\/p>\n<p>If this section is on then your site is using HTTPS.<\/p>\n<ol start=\"4\">\n<li>Enforce the SSL for addon name.<\/li>\n<li>Linux using .htaccess files for redirection. you will need to create .htaccess file in your control panel file manager.<\/li>\n<li>In cpanel click on file manager.<\/li>\n<\/ol>\n<p><img decoding=\"async\" title=\"How to Fix the &#8220;Page Isn&#8217;t Redirecting Properly&#8221; Error in WordPress\" class=\" wp-image-1819 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/on-file-manager.png\" alt=\"on file manager\" width=\"920\" height=\"294\" \/><\/p>\n<ol start=\"7\">\n<li>In file manager section click on setting.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"WordPress The Page\" class=\" wp-image-1820 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/click-on-setting.png\" alt=\"click on setting\" width=\"944\" height=\"186\" \/><\/p>\n<ol start=\"8\">\n<li>Ensure that show hidden file is check and save.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"ERR TOO MANY REDIRECTS\" class=\"size-full wp-image-1821 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/check-box-hidden-files.png\" alt=\"check box hidden files\" width=\"621\" height=\"414\" \/><\/p>\n<ol start=\"9\">\n<li>Click on public_html<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"WordPress The Page Isnt Redirecting Properly\" class=\" wp-image-1822 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/click-on-public_html.png\" alt=\"click on public_html\" width=\"649\" height=\"506\" \/><\/p>\n<ol start=\"10\">\n<li>In public_html click on <strong>.htaccess<\/strong><\/li>\n<\/ol>\n<p>If you have .htaccess file good. If you have not then click on file and name the file .htaccess and create it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"WordPress The Page Isn\u2019t Redirecting Properly\" class=\"size-full wp-image-1823 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/create-htaccess-file.png\" alt=\"create htaccess file\" width=\"407\" height=\"341\" \/><\/p>\n<ul>\n<li>Select the file .htaccess and click edit<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"edit htaccess file\" class=\" wp-image-1824 aligncenter\" src=\"https:\/\/arzhost.com\/inc\/uploads\/2020\/11\/edit-htaccess-file.png\" alt=\"edit htaccess file\" width=\"572\" height=\"388\" \/><\/p>\n<ul>\n<li>If you created .htaccess file, use this code for setup the URL redirect HTTPS version for your website.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"i\"><\/span><em><strong>&lt;ifmudule mod_rewrite.c&gt;<\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewriteengine_on\"><\/span><strong><em>Rewriteengine on<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewritebase\"><\/span><strong><em>Rewritebase \/<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewriterule_indexphp_%E2%80%93_L\"><\/span><strong><em>Rewriterule \u00a0^index\\.php$\u00a0 &#8211; [ L ]<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewritecond_REQUEST_FILENAME_%E2%80%93_f\"><\/span><strong><em>Rewritecond \u00a0%{REQUEST_FILENAME}\u00a0 ! \u2013 f<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewritecond_REQUEST_FILENAME_%E2%80%93_d\"><\/span><strong><em>Rewritecond \u00a0%{REQUEST_FILENAME}\u00a0 ! &#8211;\u00a0 d<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"Rewriterule_indexphp_L\"><\/span><strong><em>Rewriterule \u00a0\u00a0\u00a0\u00a0\u00a0.\u00a0\u00a0 \/index.php\u00a0\u00a0 [ L ]<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"i-2\"><\/span><strong><em>&lt;\/ifmodule&gt;<\/em><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><\/h4>\n<ul>\n<li>If .htaccess file is already exit then don\u2019t make duplicate <strong>rewritrengine on.<\/strong><\/li>\n<li>Ensure that lines start with <strong>rewriteenginecond<\/strong> and <strong>rewiteRule<\/strong><\/li>\n<\/ul>\n<ol start=\"11\">\n<li>Save changes and close it. That\u2019s all.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you have SSL certificate on your website. Then you can automatically redirect your visitor&#8217;s HTTP to HTTPS for a secure connection. In HTTPS \u2018S\u2019 shows that your communication is secure. But how to redirect HTTP to HTTPS? For example: https:\/\/arzhost.com In this link\u2018s\u2019 shows that Arzhost website is secure. There is nothing to do [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2989,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,21,20,22,25,14,26,15],"tags":[],"table_tags":[],"class_list":["post-2573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","category-buisness","category-e-mail","category-hosting","category-knowledge","category-news","category-server","category-wordpress"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=2573"}],"version-history":[{"count":3,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"predecessor-version":[{"id":3612,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2573\/revisions\/3612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/2989"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=2573"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}