{"id":9,"date":"2020-01-30T03:04:00","date_gmt":"2020-01-30T03:04:00","guid":{"rendered":""},"modified":"2024-09-13T14:25:59","modified_gmt":"2024-09-13T14:25:59","slug":"how-to-redirect-http-to-https-with-hostgator","status":"publish","type":"post","link":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/","title":{"rendered":"How To Redirect HTTP to HTTPS With Hostgator"},"content":{"rendered":"<p>For security purposes, all websites should use https rather than http. Normally, this can be done by editing the .htaccess file, which is located in the root directory of your website.<br \/>\nThe following should be added to the .htaccess file to redirect to https:<\/p>\n<p>RewriteEngine On<br \/>\nRewriteCond %{SERVER_PORT} 80<br \/>\nRewriteRule ^(.*)$ https:\/\/www.example.com\/$1 [R=301,L]<\/p>\n<p>Just replace www.example.com with your website domain.<\/p>\n<p>\nUnfortunately, this wasn&#8217;t working with HostGator. What did work, was making redirect changes within the HostGator account control panel.<br \/>\nThis can be done by:<\/p>\n<p>1. Log into your HostGator account control panel<br \/>\n2. Click on <i>Domains<\/i> in the left hand column<br \/>\n3. Click on <i>Redirects<\/i> in the Domains section <br \/>\n4. a. Under <i>Add Redirect,<\/i> <i>Type<\/i>, select <i>Permanent (301)<\/i><br \/>\n   b. Select the domain name from the list that you would like to redirect to https:\/\/. Optionally, also enter a subdirectory path<br \/>\n   c. Under <i>Redirects To<\/i>, enter the https:\/\/domainnametodirectto.com<br \/>\n   d. Select <i>Redirect with or without www.<\/i><br \/>\n5. Click the <i>Add<\/i> button<\/p>\n<p>Try it out by going to the https:\/\/ version of your domain name.<\/p>\n<p>(paid links)<br \/>\n<a href=\"https:\/\/amzn.to\/2RAK3Cm\" target=\"_blank\" rel=\"noopener\">Computer &#038; Technology Books<\/a><\/p>\n<p>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=B0756MTX6K&#038;asins=B0756MTX6K&#038;linkId=5e323510c9debdc64504bbb8c8c7fc3a&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=076369276X&#038;asins=076369276X&#038;linkId=ecb9d63278c8e98c81a189ab525dcdb6&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=as_ss_li_til&#038;ad_type=product_link&#038;tracking_id=zofxare-20&#038;language=en_US&#038;marketplace=amazon&#038;region=US&#038;placement=B06XFJ2JGR&#038;asins=B06XFJ2JGR&#038;linkId=14a97039eff553d0d323f21a95eb0215&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For security purposes, all websites should use https rather than http. Normally, this can be done by editing the .htaccess file, which is located in the root directory of your website. The following should be added to the .htaccess file to redirect to https: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https:\/\/www.example.com\/$1 [R=301,L] Just replace [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,5],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-hostgator","category-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home<\/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:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home\" \/>\n<meta property=\"og:description\" content=\"For security purposes, all websites should use https rather than http. Normally, this can be done by editing the .htaccess file, which is located in the root directory of your website. The following should be added to the .htaccess file to redirect to https: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https:\/\/www.example.com\/$1 [R=301,L] Just replace [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/\" \/>\n<meta property=\"og:site_name\" content=\"Zofxare Blog Home\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-30T03:04:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T14:25:59+00:00\" \/>\n<meta name=\"author\" content=\"zofxare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"zofxare\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/\"},\"author\":{\"name\":\"zofxare\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"headline\":\"How To Redirect HTTP to HTTPS With Hostgator\",\"datePublished\":\"2020-01-30T03:04:00+00:00\",\"dateModified\":\"2024-09-13T14:25:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/\"},\"wordCount\":187,\"commentCount\":0,\"articleSection\":[\"hostgator\",\"security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/\",\"name\":\"How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\"},\"datePublished\":\"2020-01-30T03:04:00+00:00\",\"dateModified\":\"2024-09-13T14:25:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/01\\\/30\\\/how-to-redirect-http-to-https-with-hostgator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Redirect HTTP to HTTPS With Hostgator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\",\"name\":\"Zofxare Blog Home\",\"description\":\"The Zofxare blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/094f5dde70100b9f8fbc63174a2a40ce\",\"name\":\"zofxare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=retro&r=g\",\"caption\":\"zofxare\"},\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/author\\\/zofxare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/","og_locale":"en_US","og_type":"article","og_title":"How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home","og_description":"For security purposes, all websites should use https rather than http. Normally, this can be done by editing the .htaccess file, which is located in the root directory of your website. The following should be added to the .htaccess file to redirect to https: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https:\/\/www.example.com\/$1 [R=301,L] Just replace [&hellip;]","og_url":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/","og_site_name":"Zofxare Blog Home","article_published_time":"2020-01-30T03:04:00+00:00","article_modified_time":"2024-09-13T14:25:59+00:00","author":"zofxare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"zofxare","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/#article","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/"},"author":{"name":"zofxare","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"headline":"How To Redirect HTTP to HTTPS With Hostgator","datePublished":"2020-01-30T03:04:00+00:00","dateModified":"2024-09-13T14:25:59+00:00","mainEntityOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/"},"wordCount":187,"commentCount":0,"articleSection":["hostgator","security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/","url":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/","name":"How To Redirect HTTP to HTTPS With Hostgator - Zofxare Blog Home","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website"},"datePublished":"2020-01-30T03:04:00+00:00","dateModified":"2024-09-13T14:25:59+00:00","author":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce"},"breadcrumb":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/01\/30\/how-to-redirect-http-to-https-with-hostgator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zofxare.com\/zofxare\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Redirect HTTP to HTTPS With Hostgator"}]},{"@type":"WebSite","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website","url":"https:\/\/zofxare.com\/zofxare\/blog\/","name":"Zofxare Blog Home","description":"The Zofxare blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zofxare.com\/zofxare\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/094f5dde70100b9f8fbc63174a2a40ce","name":"zofxare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=retro&r=g","caption":"zofxare"},"url":"https:\/\/zofxare.com\/zofxare\/blog\/author\/zofxare\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":1,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}