{"id":167,"date":"2017-02-11T10:10:16","date_gmt":"2017-02-11T10:10:16","guid":{"rendered":"https:\/\/help.perfexcrm.com\/?p=167"},"modified":"2025-10-16T11:36:04","modified_gmt":"2025-10-16T11:36:04","slug":"switch-to-https-after-installing-to-http","status":"publish","type":"post","link":"https:\/\/help.perfexcrm.com\/switch-to-https-after-installing-to-http\/","title":{"rendered":"Switch to HTTPS URL After Installing to HTTP"},"content":{"rendered":"<div class=\"st-alert st-alert-info \">To apply SSL on your Perfex CRM installation you will need properly working SSL certificate installed on your server<\/div>\n\n\n\n<p><strong>If you have already configured a <a href=\"https:\/\/help.perfexcrm.com\/setup-cron-job\/\">cron job<\/a> with http:\/\/ starting url, make sure that you update the cron job URL to start with https:\/\/<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<div class=\"st-alert st-alert- \">Changing the APP_BASE_URL to https will work good trying to force to https with .htaccess can cause problems and requires more advanced knowledge.<\/div>\n\n\n\n<p>In case the .htaccess code below does not work on your server, you need to consult with your server administrator to adjust the .htaccess code.<\/p>\n\n\n\n<p>If you want to force it, you will need to add suitable .htaccess code to fit your needs.<br>You can try this one\u00a0and it should\u00a0work well:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>RewriteEngine On\nRewriteCond %{HTTPS} !=on\nRewriteRule ^\u00a0https:\/\/%{HTTP_HOST}%{REQUEST_URI} &#091;L,R=301&#093;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">RewriteEngine <\/span><span style=\"color: #81A1C1\">On<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">RewriteCond <\/span><span style=\"color: #81A1C1\">%<\/span><span style=\"color: #ECEFF4\">{<\/span><span style=\"color: #D8DEE9FF\">HTTPS<\/span><span style=\"color: #ECEFF4\">}<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">!=on<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">RewriteRule <\/span><span style=\"color: #81A1C1\">^<\/span><span style=\"color: #D8DEE9FF\">\u00a0https<\/span><span style=\"color: #81A1C1\">:<\/span><span style=\"color: #616E88\">\/\/%{HTTP_HOST}%{REQUEST_URI} &#091;L,R=301&#093;<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you have already configured a cron job with http:\/\/ starting url, make sure that you update the cron job URL to start with https:\/\/ In case the .htaccess code below does not work on your server, you need to consult with your server administrator to adjust the .htaccess code. If you want to force [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-general-informations"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.perfexcrm.com\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}