{"id":2374,"date":"2024-11-22T11:57:31","date_gmt":"2024-11-22T10:57:31","guid":{"rendered":"https:\/\/alessandromasciadri.com\/?p=2374"},"modified":"2024-11-22T12:02:53","modified_gmt":"2024-11-22T11:02:53","slug":"come-impostare-redirect-da-http-a-https-su-openlitespeed","status":"publish","type":"post","link":"https:\/\/alessandromasciadri.com\/come-impostare-redirect-da-http-a-https-su-openlitespeed\/","title":{"rendered":"Come impostare redirect da HTTP a HTTPS su OpenLiteSpeed"},"content":{"rendered":"\t\t<div data-akihiro-type=\"ama-post\" data-akihiro-id=\"2374\" class=\"akihiro akihiro-2374\" data-akihiro-post-type=\"post\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-4b71d16 e-flex e-con-boxed e-con e-parent\" data-id=\"4b71d16\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-2e7a79c akihiro-widget akihiro-widget-text-editor\" data-id=\"2e7a79c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In questo <a href=\"https:\/\/alessandromasciadri.com\/come-ottenere-un-certificato-ssl-per-openlitespeed-con-lets-encrypt\/\" target=\"_blank\" rel=\"noopener\">precedente articolo<\/a> abbiamo visto come utilizzare Let&#8217;s Encrypt ed ottenere un certificato SSL per un nostro sito appoggiato su OpenLiteSpeed. In questo nuovo articolo vediamo ora come reindirizzare tutto il traffico HTTP a HTTPS.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-8f2389a akihiro-widget akihiro-widget-heading\" data-id=\"8f2389a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Redirect da HTTP a HTTPS<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-b0796a0 akihiro-widget akihiro-widget-text-editor\" data-id=\"b0796a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Per ottenere un redirect di tutto il traffico da HTTP a HTTPS per il nostro sito su OpenLiteSpeed \u00e8 sufficiente impostare questa semplice regola mettendo al posto di example.com il dominio del nostro sito web.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-4af6ac7 akihiro-widget akihiro-widget-code-highlight\" data-id=\"4af6ac7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language- \">\n\t\t\t\t<code readonly=\"true\" class=\"language-\">\n\t\t\t\t\t<xmp>RewriteCond %{SERVER_PORT} 80\nRewriteRule ^(.*)$ https:\/\/example.com\/$1 [R,L]<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-d103458 akihiro-widget akihiro-widget-text-editor\" data-id=\"d103458\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Questa semplice regola va poi incollata nella configurazione del Virtual Host su OpenLiteSpeed. La seguente screenshot da un&#8217;idea di dove incollare la regola.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-9423f73 akihiro-widget akihiro-widget-image\" data-id=\"9423f73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"276\" src=\"https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01-1024x353.png\" class=\"attachment-large size-large ama-image-2376\" alt=\"\" srcset=\"https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01-1024x353.png 1024w, https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01-300x104.png 300w, https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01-768x265.png 768w, https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01-1536x530.png 1536w, https:\/\/alessandromasciadri.com\/ama-uploads\/2024\/11\/openlitespeed-redirect-http-to-https-01.png 1628w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-257334b akihiro-widget akihiro-widget-text-editor\" data-id=\"257334b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Terminata questa semplice configurazione ricordarsi di eseguire un Graceful Restart di OpenLiteSpeed per ricaricare le Rewrite Rules.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In questo precedente articolo abbiamo visto come utilizzare Let&#8217;s Encrypt ed ottenere un certificato SSL per un nostro sito appoggiato su OpenLiteSpeed. In questo nuovo articolo vediamo ora come reindirizzare tutto il traffico HTTP a HTTPS. Redirect da HTTP a HTTPS Per ottenere un redirect di tutto il traffico da HTTP a HTTPS per il [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[53],"class_list":["post-2374","post","type-post","status-publish","format-standard","hentry","category-sistemistica","tag-openlitespeed"],"_links":{"self":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/comments?post=2374"}],"version-history":[{"count":4,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2374\/revisions"}],"predecessor-version":[{"id":2379,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2374\/revisions\/2379"}],"wp:attachment":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/media?parent=2374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/categories?post=2374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/tags?post=2374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}