<div style="display:inline;float:right;margin-left:1em"><g:plusone href="https://www.searchenginegenie.com/blog-seo/seo-301-redirect-from-http-to-https/"></g:plusone></div>
<div style="display:inline;float:right;margin-left:1em"><g:plusone href="https://www.searchenginegenie.com/blog-seo/seo-301-redirect-from-http-to-https/"></g:plusone></div>
{"id":1942,"date":"2014-09-10T14:24:37","date_gmt":"2014-09-10T18:24:37","guid":{"rendered":"https:\/\/www.searchenginegenie.com\/blog-seo\/?p=1942"},"modified":"2015-05-05T03:45:30","modified_gmt":"2015-05-05T07:45:30","slug":"seo-301-redirect-from-http-to-https","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/blog-seo\/seo-301-redirect-from-http-to-https\/","title":{"rendered":"SEO 301 redirect from http to https"},"content":{"rendered":"<p><strong>Recently our site was moved from http to https. Moving a big site like ours was not easy. It took us a lot of time to move. We had too many static pages which made our life difficult. When we move our site from http to https it is important that move everything to the secure section.<\/strong><\/p>\n<p><a href=\"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-content\/uploads\/2015\/05\/SEO-301-redirect-from-http-to-https1.png\" rel=\"lightbox[1942]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1966 \" src=\"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-content\/uploads\/2015\/05\/SEO-301-redirect-from-http-to-https1.png\" alt=\"SEO 301 redirect from http to https\" width=\"565\" height=\"370\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Areas to consider are CSS, images, JavaScript and any other client side includes should be from secure section. If your URLs are relative you don&#8217;t have a problem but if your URLs are absolute then you have a problem in your hand. Make sure you search and replace all URLs that have absolute links. We search for pages with URLs like <\/strong><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000080;\"><strong>http:\/\/www.searchenginegenie.com,<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000080;\"><strong>http:\/\/searchenginegenie.com,<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000080;\"><strong>http:\/\/facebook.com etc. <\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><strong>These type of URLs are replaced with https instead of http.<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>But before moving into all these details make sure https works perfectly on your site. Next important thing is to 301 redirect all http pages to https pages.<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Because we are on an Apache server we used this code in our .htaccess file.\\<\/strong><\/p>\n<p><em><strong><span style=\"color: #800000;\">RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^\/?(.*) https:\/\/%{SERVER_NAME}\/$1 [R,L] <\/span><\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><strong> This code worked great till we went into our wordpress pages.<\/strong><\/p>\n<p><strong>We have about 8 wordpress blogs. <\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Insert code here<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Then we need to login to our wordpress section and change the htaccess files there. We replaced above code in .htaccess in each wordpress blog root section. Boom it worked. We never had any problems after that.<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>To make sure browsers don&#8217;t throw insecure content error for wordpress blogs. Use &#8220;wordpress https&#8221; plugin. It is freely available for download.<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>If anyone need help moving site to a secure server contact us we are more than willing to help you.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently our site was moved from http to https. Moving a big site like ours was not easy. It took us a lot of time to move. We had too many static pages which made our life difficult. When we move our site from http to https it is important that move everything to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-1942","post","type-post","status-publish","format-standard","hentry","category-seo"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/comments?post=1942"}],"version-history":[{"count":9,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/1942\/revisions"}],"predecessor-version":[{"id":2176,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/posts\/1942\/revisions\/2176"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/media?parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/categories?post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/blog-seo\/wp-json\/wp\/v2\/tags?post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}