Php – Remove index.php from url and redirect to https in Codeigniter

Php – Remove index.php from url and redirect to https in Codeigniter::

stackofcodes.in  stackofcodes.in

 

RewriteEngine on
Rewritebase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^/(index\.php|assets/|humans\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]

Leave a Comment