{"id":233,"date":"2020-12-20T07:27:52","date_gmt":"2020-12-20T07:27:52","guid":{"rendered":"http:\/\/rat32.com\/rat32\/?p=233"},"modified":"2020-12-20T07:27:52","modified_gmt":"2020-12-20T07:27:52","slug":"how-to-redirect-all-http-request-into-https-using-htaccess","status":"publish","type":"post","link":"https:\/\/rat32.com\/rat32\/2020\/12\/20\/how-to-redirect-all-http-request-into-https-using-htaccess\/","title":{"rendered":"How to redirect all http request into https using htaccess?"},"content":{"rendered":"<p>To redirect http url or request into https version you need to add certain rules into .htaccess file. To do this you need to create .htaccess file or edit if you already have it. Add the following rule in .htaccess file:<\/p>\n<p>RewriteEngine On<br \/>\nRewriteCond %{SERVER_PORT} 80<br \/>\nRewriteRule ^(.*)$ https:\/\/yourdomain.com\/$1 [R,L]<\/p>\n<p>The third line does the main work. It redirects all request into https version. Just change yourdomain.com into your suitable one. Thats all.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>To redirect http url or request into https version you need to add certain rules into .htaccess file. To do this you need to create .htaccess file or edit if you already have it.&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157,7,156],"tags":[159,123,161,162,163,164],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-domain-name","category-how-to","category-web-hosting","tag-domain","tag-hosting","tag-http","tag-https","tag-redirect","tag-solve"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":1,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/233\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}