Cara Redirect / Mengarahkan Http Ke Https Codeigniter Domain Dan Subdomain

Tanggal : 21 Jul 2018, Category : Tutorial, Create By : admin

Selamat datang di website gudangilmuaplikasi.com, kali ini gudangilmuaplikasi.com akan membahas tentang Cara Redirect / Mengarahkan HTTP ke HTTPS CodeIgniter Domain dan Subdomain dan penggunaan HTTPS Domain dan Subdomain di framework CodeIgniter. Untuk Mengarahkan Http Ke Https Anda Membutuhkan File .htaccess

Kemudian masukan Code berikut ini :

Domain Utama

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1

Subdomain

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(namasubdomain)\. [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1


Keyword:
  • Cara Redirect / Mengarahkan HTTP ke HTTPS CodeIgniter Domain dan Subdomain
  • HTTP
  • HTTPS
  • Domain
  • Subdomain
  • htaccess
  • Mengarahkan
  • Redirect

Artikel Lain

How To Make A Date Input Type

Date : 14 Feb 2023, Category : HTML, Create By : admin

To create a date input type in HTML, you can use the "date" input type in an HTML form. Here's an example: <form> <label for="birthdate">Birthdate:</label> <input type="date" id="birthdate" name="birthdate"> <input type="submit" .....

Html Headings And How To Use Them

Date : 15 Feb 2023, Category : HTML, Create By : admin

HTML headings are used to define the structure and hierarchy of content on a web page. There are six levels of headings in HTML, from H1 to H6, where H1 .....

Apa Itu Website ?

Date : 07 Jul 2018, Category : Pemprograman Website, Create By : admin

Selmat datang di gudang ilmu aplikasi, kali ini kita akan membahas apa itu wabsite, fungsi website dan jenis wesbite. Website atau sering kita sebut situs adalah kumpulan halaman - halaman .....