Redirect Http to Https in Codeignitor

First go to the application/config/config.php file and look for this line:
$config[‘base_url’] = “”;
Set it to your URL with the https e.g. https://example.com
$config[‘base_url’] = “https://example.com”;
Then go to your .htaccess file and add this line in the example given below.
RewriteRule ^(…

Read Full Article At : https://13facts.info/2018/11/redirect-http-https-codeignitor/

Tags :

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s