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

Create Inner Join Query In Mysql Database

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

In MySQL, you can use the INNER JOIN clause to combine data from two or more tables based on a common column. Here's the basic syntax: SELECT column_name(s)FROM table1INNER JOIN table2 .....

Mengenal Fungsi Break Dan Continue Javascript

Date : 28 Dec 2018, Category : JavaScript, Create By : admin

Dalam bahasa pemprograman javascript kita bisa menggunakan fungsi Break dan Continue, apa itu Break dalam bahasa indonesia bisa di artikan istirahat, yaitu menghentikan sebuah looping, Sedangkan Continue artinya  terus atau berlanjut, sebenarnya fungsi Continue .....

How To Use If In Javascript

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

In JavaScript, you can use the "if" statement to execute code based on a condition. The basic syntax is: if (condition) { // code to execute if the condition is true}  Here's .....