{"id":45640,"date":"2021-02-24T19:37:21","date_gmt":"2021-02-24T19:37:21","guid":{"rendered":"https:\/\/www.awardspace.com\/?p=45640"},"modified":"2025-05-16T08:06:05","modified_gmt":"2025-05-16T08:06:05","slug":"redirect-http-to-https","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/","title":{"rendered":"How Do I Redirect HTTP Traffic to HTTPS?"},"content":{"rendered":"<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/what-is-ssl-1.jpg\" alt=\"Hero image.\" \/><\/figure>\n<blockquote class=\"gray\"><p><strong>What you need to know:<\/strong><\/p>\n<p>If you have a basic website that you have coded by hand, you can place a <a href=\"#use-htaccess\">special .htaccess file<\/a> in your website\u2019s root directory that will redirect your <a href=\"\/kb\/what-is-http\/\">HTTP<\/a> traffic to <a href=\"\/kb\/what-is-https\/\">HTTPS<\/a>. Alternatively, if you use a CMS as the basis for your website, you should check its security settings for an option to force HTTPS rather than using the .htaccess file method.<\/p><\/blockquote>\n<p>Thanks to free and low-cost SSL certificates, the use of HTTPS has skyrocketed in recent years. By choosing to redirect all HTTP traffic to HTTPS, website owners can gain multiple benefits afforded by SSL. Most importantly, the use of SSL can ensure the safety and security of your site visitors. Moreover, search engines like Google are rewarding websites that force HTTPS connections by giving them a boost in SERPs. In this article, we will show how you can gain these benefits by redirecting your HTTP traffic to HTTPS.<\/p>\n<blockquote class=\"gray\"><p><strong>Table of Contents<\/strong><\/p>\n<ul>\n<li><a href=\"#requirements\">Requirements<\/a><\/li>\n<li><a href=\"#no-https-on-ssl-website\">Why Doesn\u2019t My Website Load Using HTTPS Now That I Have SSL Installed?<\/a><\/li>\n<li><a href=\"#redirect-http-traffic-to-https\">How Do I Redirect HTTP Traffic to HTTPS?<\/a>\n<ul>\n<li><a href=\"#use-htaccess\">How Do I Use an .htaccess File to Force HTTPS on My Website?<\/a><\/li>\n<li><a href=\"#cms-configuration\">How Do I Set up My CMS to Redirect HTTP to HTTPS?<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<p>The only requirement to force an HTTPS connection is for your domain to have a valid <a href=\"\/kb\/what-is-ssl\/\">SSL certificate<\/a>. In case you are not sure if there is a valid SSL certificate installed, you can use the SSL Manager to <a href=\"\/kb\/how-to-use-the-ssl-manager\/#check-for-ssl\">check whether a domain is SSL-protected<\/a>. If you discover that your domain is not SSL-protected, you should <a href=\"\/kb\/how-to-get-ssl-certificate\/#how-to-get-ssl-certificate\">obtain an SSL certificate<\/a> and then <a href=\"\/kb\/ssl-certificate-installation\/#install-ssl\">install the SSL on the domain<\/a> in order to secure it.<\/p>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/03\/install-ssl-certificate-1.png\" alt=\"Securing your website with SSL instills confidence in your visitors, making it more likely that they will sign up or make a purchase.\" \/><figcaption>Securing your website with SSL instills confidence in your visitors, making it more likely that they will sign up or make a purchase.<\/figcaption><\/figure>\n<p>It should be noted that all SSL-related functionality is considered an advanced hosting feature. As such, the SSL Manager will only be available to you if you are using one of our <a href=\"\/web-hosting\/shared-hosting\/\">premium shared hosting<\/a> plans or one of our <a href=\"\/web-hosting\/semi-dedicated-hosting\/\">Semi-Dedicated web servers<\/a>. At this time, the <a href=\"\/free-hosting\/\">free web hosting<\/a> package does not come with SSL support.<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"no-https-on-ssl-website\">Why Doesn\u2019t My Website Load Using HTTPS Now That I Have SSL Installed?<\/h2>\n<p>So, you have gone ahead and <a href=\"\/web-hosting\/ssl-certificates\/\">purchased an SSL certificate<\/a> for your domain name or installed an SSL that you already had available. Then, you tried visiting your website only to find that it is still showing a <em>Not Secure<\/em> warning.<\/p>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/03\/install-ssl-certificate-2.png\" alt=\"Modern web browsers tend to point out unsecured connections, especially if the page contains a payment form or a login field.\" \/><figcaption>Modern web browsers tend to point out unsecured connections, especially if the page contains a payment form or a login field.<\/figcaption><\/figure>\n<p>The reason for this apparent bug is probably that your website is not set up to force a secure HTTPS connection yet. In other words, if a site visitor makes an HTTP request, they will get an HTTP response. Conversely, in this scenario, you would get an HTTPS response only if you have made an HTTPS request, to begin with.<\/p>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2021\/02\/redirect-http-to-https-1.jpg\" alt=\"By default, web servers will respond using the same protocol that was used by the client to initiate the exchange.\" \/><figcaption>By default, web servers will respond using the same protocol that was used by the client to initiate the exchange.<\/figcaption><\/figure>\n<p>With that in mind, it is possible to configure your web server so that all HTTP traffic gets redirected to HTTPS automatically. We will explore how to achieve this in the next section.<\/p>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2021\/02\/redirect-http-to-https-2.jpg\" alt=\"Once properly configured, a web server can respond to all requests using the HTTPS protocol.\" \/><figcaption>Once properly configured, a web server can respond to all requests using the HTTPS protocol.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h2 id=\"redirect-http-traffic-to-https\">How Do I Redirect HTTP Traffic to HTTPS?<\/h2>\n<p>There are two main ways you can configure your website to redirect HTTP traffic to HTTPS:<\/p>\n<ul>\n<li>you can <a href=\"#use-htaccess\">use an .htaccess file to force an HTTPS connection<\/a>. This option is best suited for basic websites or if you wish to have more control over the traffic redirection.<\/li>\n<li>you can <a href=\"#cms-configuration\">use the tools built into your website\u2019s back-end<\/a> to redirect site visitors to HTTPS. This option is available only if you are using a sophisticated content management system (CMS) such as WordPress, Drupal, Joomla, or similar.<\/li>\n<\/ul>\n<p>We will examine both approaches in greater detail below.<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"use-htaccess\">How Do I Use an .htaccess File to Force HTTPS on My Website?<\/h3>\n<p>The .htaccess file is used to issue directives to the <a href=\"\/kb\/what-is-server\/\">server<\/a>. These directives govern URL redirection, URL shortening, access control, and more. In this specific case, we will show you how to use an .htaccess file to ensure that all site visitors are redirected to the HTTPS version of your website.<\/p>\n<p>To create your .htaccess file, follow the steps below:<\/p>\n<ol>\n<li>Open the <strong><a href=\"https:\/\/cp1.awardspace.net\/file-manager\/\">File Manager<\/a><\/strong> section of the Control Panel.<\/li>\n<li><strong>Double-click on the website<\/strong> where you wish to force HTTPS.<\/li>\n<li>From the toolbar, choose the <strong>Create<\/strong> button.<\/li>\n<\/ol>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/04\/redirect-http-to-https-1.png\" alt=\"Creating an .htaccess file is as simple as creating any other file using the File Manager.\" \/><figcaption>Creating an .htaccess file is as simple as creating any other file using the File Manager.<\/figcaption><\/figure>\n<blockquote class=\"green\"><p><strong>Tip<\/strong><\/p>\n<p>Curious about what else the File Manager is capable of? Find out in our <a href=\"\/kb\/file-manager-how-to-use\/\">guide to the AwardSpace File Manager<\/a>!<\/p><\/blockquote>\n<ol start=\"4\">\n<li>In the popup window that appears, choose the option to <strong>Create File<\/strong> and name your file <strong>.htaccess<\/strong>.<\/li>\n<\/ol>\n<blockquote class=\"red\"><p><strong>Important<\/strong><\/p>\n<p>Do not forget to include the leading dot in the file name!<\/p><\/blockquote>\n<ol start=\"5\">\n<li>Press the <strong>Create<\/strong> button.<\/li>\n<\/ol>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/04\/redirect-http-to-https-2.png\" alt=\"Make sure that you name your file .htaccess. If you give it any other name, then the web server will completely ignore its directives.\" \/><figcaption>Make sure that you name your file <em>.htaccess<\/em>. If you give it any other name, then the web server will completely ignore its directives.<\/figcaption><\/figure>\n<blockquote class=\"green\"><p><strong>Tip<\/strong><\/p>\n<p>If your website already has an .htaccess file in its root directory, you should not create a new .htaccess file. Instead, you should use the file that is already present by following the steps below.<\/p><\/blockquote>\n<ol start=\"6\">\n<li>The end result should be a brand new file called <em>.htaccess<\/em>. If the file is properly named, the server should automatically detect it as a <em>Web configuration<\/em> file. You can verify this in the <em>Type<\/em> column of the File Manager.<\/li>\n<li>Once you have verified that the server recognizes the .htaccess file as a proper web configuration, you can <strong>double-click the .htaccess file<\/strong> to start editing it.<\/li>\n<\/ol>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/04\/redirect-http-to-https-3.png\" alt=\"If the server recognizes your new file\u2019s type as a Web configuration, then you have successfully created your .htaccess file.\" \/><figcaption>If the server recognizes your new file\u2019s type as a <em>Web configuration<\/em>, then you have successfully created your .htaccess file.<\/figcaption><\/figure>\n<ol start=\"8\">\n<li>At this stage, you should have the .htaccess file open in the File Manager. Since you have just created the file, it is normal for it to be empty, as is shown below:<\/li>\n<\/ol>\n<figure><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/04\/redirect-http-to-https-4.png\" alt=\"Your .htaccess file is now open in the File Manager and you can start editing it.\" \/><figcaption>Your .htaccess file is now open in the File Manager and you can start editing it.<\/figcaption><\/figure>\n<blockquote class=\"green\"><p><strong>Tip<\/strong><\/p>\n<p>If your website was using an .htaccess file already, then in most cases it would not be empty. In such scenarios, you should still follow the instructions below, just keep in mind that you need to append your changes to the <em>end<\/em> of the file.<\/p><\/blockquote>\n<ol start=\"9\">\n<li>Now it\u2019s time to decide what rules the .htaccess file should contain. Below, we will use <code>protected-site.com<\/code> as our example domain and we will list three sets of rules. All of these rules will allow your .htaccess file to force an HTTPS connection, so picking a set comes down to your personal preference. <strong>Choose one<\/strong> of the following sets of rules:<\/li>\n<li><strong>force \u201cwww\u201d<\/strong>. With this ruleset, all of your HTTP traffic will be redirected to HTTPS and will land on the \u201cwww\u201d version of your domain name. So if a visitor enters <code>http:\/\/protected-site.com\/<\/code> or <code>http:\/\/www.protected-site.com\/<\/code> into their web browser, they will end up on <code>https:\/\/www.protected-site.com\/<\/code>. The code for this ruleset is:<\/li>\n<\/ol>\n<pre><code>RewriteEngine On\r\nRewriteBase \/\r\nRewriteCond %{HTTPS} off\r\nRewriteRule ^(.*)$ https:\/\/www.protected-site.com%{REQUEST_URI} [L,R=301]\r\n<\/code><\/pre>\n<ul>\n<li><strong>force \u201cnon-www\u201d<\/strong>. With this ruleset, all of your HTTP traffic will be redirected to HTTPS and will land on the \u201cnon-www\u201d version of your domain name. So if a visitor enters <code>http:\/\/protected-site.com\/<\/code> or <code>http:\/\/www.protected-site.com\/<\/code> into their web browser, they will end up on <code>https:\/\/protected-site.com\/<\/code>. The code for this rule set is:<\/li>\n<\/ul>\n<pre><code>RewriteEngine On\r\nRewriteBase \/\r\nRewriteCond %{HTTPS} off\r\nRewriteRule ^(.*)$ https:\/\/protected-site.com%{REQUEST_URI} [L,R=301]\r\n<\/code><\/pre>\n<ul>\n<li><strong>allow both \u201cwww\u201d and \u201cnon-www\u201d<\/strong>. With this rule set, all of your HTTP traffic will just be redirected to HTTPS with no other alterations. So if a visitor goes to <code>http:\/\/protected-site.com\/<\/code> they will arrive at <code>https:\/\/protected-site.com\/<\/code>. Similarly, if a visitor enters <code>http:\/\/www.protected-site.com\/<\/code> into their web browser, they will end up on <code>https:\/\/www.protected-site.com\/<\/code>. The code for this rule set is:<\/li>\n<\/ul>\n<pre><code>RewriteEngine On\r\nRewriteBase \/\r\nRewriteCond %{HTTPS} off\r\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r\n<\/code><\/pre>\n<blockquote class=\"yellow\"><p><strong>Warning<\/strong><\/p>\n<p>Allowing both \u201cwww\u201d and \u201cnon-www\u201d on your domain can harm your <a href=\"\/help\/what-is-seo-and-how-does-it-work\/\" target=\"_blank\" rel=\"noopener\">SEO<\/a>.<\/p><\/blockquote>\n<ol start=\"11\">\n<li><strong>Copy the code<\/strong> of your preferred ruleset.<\/li>\n<li><strong>Paste the code<\/strong> into your .htaccess file.<\/li>\n<li>If you have chosen the <em>force \u201cwww\u201d<\/em> or the <em>force \u201cnon-www\u201d<\/em> rule set, <strong>update the domain name<\/strong> on line 4 from <code>protected-site.com<\/code> to your actual domain name.<\/li>\n<li>Save your changes by clicking on the <strong>Save<\/strong> button.<\/li>\n<\/ol>\n<p>At this point, your .htaccess file will start forcing an HTTPS connection. If you are still taken to an unsecured version of your website, try clearing your browser\u2019s cache and cookies. In the unlikely event that the issue persists, you can contact the <a href=\"https:\/\/cp1.awardspace.net\/support\/\">24\/7 Technical Support Team<\/a> and they will assist you further.<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"cms-configuration\">How Do I Set up My CMS to Redirect HTTP to HTTPS?<\/h3>\n<p>Many popular content management systems out there offer settings that enable you to redirect all HTTP traffic to HTTPS. These settings are usually found in the CMS back-end.<\/p>\n<p>If you are using WordPress, you can check our dedicated <a href=\"\/wordpress-tutorials\/wordpress-ssl\/\">tutorial on how to force HTTPS on a WordPress site<\/a>. And in case you are using a different CMS, you can check the official CMS documentation or you can post a question on the community support forums for your CMS.<\/p>\n<p>Your CMS of choice will not always have an option to redirect HTTP to HTTPS. If you find yourself in this situation, you can try our <a href=\"#use-htaccess\">.htaccess solution to force HTTPS<\/a>. The only difference is that in many cases your CMS will already be using an .htaccess file, so you will not need to create one from scratch. Instead, just add the redirection code to the end of the already existing .htaccess file.<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Forcing a secure HTTPS connection is quickly becoming table stakes when it comes to launching and maintaining a successful website. The great thing about redirecting all HTTP traffic to HTTPS is that it does not come with any drawbacks. As such, site owners are highly recommended to start using secure connections and reap the benefits that come with a secure website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What you need to know: If you have a basic website that you have coded by hand, you can place a special .htaccess file in your website\u2019s root directory that will redirect your HTTP traffic to HTTPS. Alternatively, if you use a CMS as the basis for your website, you should check its security settings [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":48054,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-45640","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com<\/title>\n<meta name=\"description\" content=\"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com\" \/>\n<meta property=\"og:description\" content=\"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-24T19:37:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-16T08:06:05+00:00\" \/>\n<meta name=\"author\" content=\"iskrend\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"iskrend\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\"},\"author\":{\"name\":\"iskrend\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\"},\"headline\":\"How Do I Redirect HTTP Traffic to HTTPS?\",\"datePublished\":\"2021-02-24T19:37:21+00:00\",\"dateModified\":\"2025-05-16T08:06:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\"},\"wordCount\":1646,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Hosting Basics\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\",\"url\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\",\"name\":\"How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2021-02-24T19:37:21+00:00\",\"dateModified\":\"2025-05-16T08:06:05+00:00\",\"description\":\"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\/\/www.awardspace.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Hosting Basics\",\"item\":\"https:\/\/www.awardspace.com\/kb\/hosting-basics\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How Do I Redirect HTTP Traffic to HTTPS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232\",\"name\":\"iskrend\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g\",\"caption\":\"iskrend\"},\"url\":\"https:\/\/www.awardspace.com\/author\/iskrend\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com","description":"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.","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:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/","og_locale":"en_US","og_type":"article","og_title":"How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com","og_description":"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.","og_url":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2021-02-24T19:37:21+00:00","article_modified_time":"2025-05-16T08:06:05+00:00","author":"iskrend","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"iskrend","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/"},"author":{"name":"iskrend","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232"},"headline":"How Do I Redirect HTTP Traffic to HTTPS?","datePublished":"2021-02-24T19:37:21+00:00","dateModified":"2025-05-16T08:06:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/"},"wordCount":1646,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage"},"thumbnailUrl":"","articleSection":["Hosting Basics"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/","url":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/","name":"How Do I Redirect HTTP Traffic to HTTPS? | AwardSpace.com","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage"},"thumbnailUrl":"","datePublished":"2021-02-24T19:37:21+00:00","dateModified":"2025-05-16T08:06:05+00:00","description":"Learn how to redirect your website traffic from HTTP to HTTPS so that you can benefit from increased security and better ranking in SERPs.","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/kb\/redirect-http-to-https\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.awardspace.com\/kb\/"},{"@type":"ListItem","position":3,"name":"Hosting Basics","item":"https:\/\/www.awardspace.com\/kb\/hosting-basics\/"},{"@type":"ListItem","position":4,"name":"How Do I Redirect HTTP Traffic to HTTPS?"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/964cd1bbc68d83dc446a9ea98ebc7232","name":"iskrend","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1864832146466465ced4d8985737e772d6277dea9324c4cf6f23019419bf3047?s=96&d=mm&r=g","caption":"iskrend"},"url":"https:\/\/www.awardspace.com\/author\/iskrend\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/45640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=45640"}],"version-history":[{"count":1,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/45640\/revisions"}],"predecessor-version":[{"id":76474,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/45640\/revisions\/76474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=45640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=45640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=45640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}