• Skip to main content
  • Skip to primary sidebar
  • Home
  • Artikel
  • Postingan
  • Tutorial
  • Review
  • YouTube Channels
    • Dipo Putra
    • Kurang Kerjaan
  • About Me

Dipo Putra

A Professional Procrastinator

Paksa Website Untuk Selalu Menggunakan HTTPS

28 March 2018 By Dipo Leave a Comment

Blog saya ini sudah menggunakan SSL sejak adanya SSL gratis dari Let's Encrypt. Setiap kali saya mengakses blog saya melalui smartphone ataupun komputer saya sendiri, maka saya bisa senyum-senyum sendiri melihat ada tulisan "Secure" atau "Aman" di sebelah kiri URL blog saya. Tentu saja, URL blognya juga sudah menggunakan HTTPS.

Ah, keren sekali.

Tapi tadi saya mencoba mengakses blog saya menggunakan hape orang. Suatu hal yang aneh terjadi: HTTPS-nya hilang!

Ada tulisan "Not Secure" di blog saya! Saya menjadi tidak nyaman menerima kenyataan ini!

Maka dari itu, tampaknya saya perlu melakukan sedikit perubahan pada .htaccess saya di cPanel.

Saya akan PAKSA blog saya untuk selalu di-redirect ke HTTPS!

Jika Anda sudah tahu cara mengakses file .htaccess pada cPanel dan melakukan editing, maka selamat. Yang perlu Anda lakukan adalah men-copy syntax di bawah ini dan paste-kan pada file .htaccess Anda. Tapi ingat, tambahkan saja paling bawah. Jangan ganggu syntax lain.

#PAKSA GUNAKAN HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#PAKSA GUNAKAN HTTPS SELESAI

Klik save dan Anda bisa mencoba untuk mengakses blog Anda dengan HTTP saja. Maka akan langsung di-redirect ke HTTPS.

Tentunya, blog atau website Anda harus menggunakan SSL dulu.

Oke, semoga tutorial singkat ini bermanfaat. Kita akan bertemu lagi di artikel selanjutnya!

Filed Under: Postingan

About Dipo

A Professional Procrastinator.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

January 2021
MTWTFSS
 123
45678910
11121314151617
18192021222324
25262728293031
« Aug    

Social Media

  • Facebook
  • Instagram
  • Medium
  • Twitter
  • YouTube

Iklan

Recent Posts

  • Oke, saya ingin ngeblog lagi di tahun ini. 4 January 2021
  • Game Kata Berkait Bangkit dari Kematian 20 August 2020
  • Sekarang Blog Ini Punya Lebih Sedikit Iklan dari Sebelumnya 17 July 2020
  • Sekarang Blog Ini Lebih Cepat dari Sebelumnya 16 July 2020
  • Saya Tidak Tahu Apa yang Harus Dilakukan… 24 May 2020

Recent Comments

  • hersusantyo on Cara Download Adobe Premiere Pro CC Terbaru GRATIS!
  • Maizal on Bagaimana Cara Membeli Adobe Photoshop?
  • Maizal on Bagaimana Cara Membeli Adobe Photoshop?
  • anbay on Bagaimana Cara Membeli Adobe Photoshop?
  • F02 on Bagaimana Cara Membeli Adobe Photoshop?

Dipo Putra © 2010–2021

Sebagai seorang blogger yang baik, saya wajib memberitahukan kepada Anda bahwa blog ini mengumpulkan cookies. Klik OK jika sudah tahu. Cookie settingsOK
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.