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 Use Code If On Python

Date : 13 Feb 2023, Category : Tutorial, Create By : admin

The if statement in Python is used to control the flow of the program based on certain conditions. When a condition is met, the code inside the if block is .....

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 .....

Menambah Style Css Dengan Javascript

Date : 10 Sep 2018, Category : JavaScript, Create By : admin

Hai brow, selamat datang kembali di wesbite gudang ilmu aplikasi, kali ini kami akan membahas tentang javascript dan style css, yang kami beri judul menambah style css dengan javascript, dua .....