{"id":100,"date":"2014-01-29T10:26:51","date_gmt":"2014-01-29T09:26:51","guid":{"rendered":"http:\/\/yves.laedis.ch\/cms\/?p=100"},"modified":"2014-01-29T10:26:51","modified_gmt":"2014-01-29T09:26:51","slug":"apache2-rewrite-to-https","status":"publish","type":"post","link":"https:\/\/yves.laedis.ch\/cms\/apache2-rewrite-to-https\/","title":{"rendered":"Apache2 Rewrite to https"},"content":{"rendered":"<p>&nbsp;<\/p>\n<pre class=\"lang:sh decode:true\" title=\"insert the following directives\">RewriteEngine On\r\n# This will enable the Rewrite capabilities\r\n\r\nRewriteCond %{HTTPS} !=on\r\n# This checks to make sure the connection is not already HTTPS\r\n\r\nRewriteRule ^\/?(.*) https:\/\/%{SERVER_NAME}\/$1 [R,L]\r\n# This rule will redirect users from their original location, to the same location but using HTTPS.\r\n# i.e. http:\/\/www.example.com\/foo\/ to https:\/\/www.example.com\/foo\/\r\n# The leading slash is made optional so that this will work either in httpd.conf\r\n# or .htaccess context<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; RewriteEngine On # This will enable the Rewrite capabilities RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteRule ^\/?(.*) https:\/\/%{SERVER_NAME}\/$1 [R,L] # This rule will redirect users from their original location, to the same location but using HTTPS. # i.e. http:\/\/www.example.com\/foo\/ to https:\/\/www.example.com\/foo\/ # The leading slash &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/yves.laedis.ch\/cms\/apache2-rewrite-to-https\/\">Weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[15,17,16],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-computers","tag-apache","tag-https","tag-rewrite","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ixHP-1C","_links":{"self":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":2,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/posts\/100\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yves.laedis.ch\/cms\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}