How to redirect http site to https using htaccess

Code to redirect http site to https using htaccess –

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

How to change controller and model directory path in codeigniter ?

Change controller and model directory path(in Codeigniter) –

You can changed it by using HMVC extension.
First of all download the extension code from –
https://github.com/skjain5793/codeigniter-modular-extensions-hmvc

Extract it and
i.) put /third_party  folder files in application/third_party folder
ii.) put /core folder files in application/core folder

 

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.