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]

7 thoughts on “Php – Remove index.php from url and redirect to https in Codeigniter”

  1. I’m impressed, I must say. Seldom do I come across a
    blog that’s both educative and entertaining, and without a doubt,
    you have hit the nail on the head. The problem is something not enough men and women are speaking intelligently about.
    I am very happy that I found this during my search for something concerning this.

  2. obviously like your web site however you need
    to take a look at the spelling on several of your posts.

    Several of them are rife with spelling issues and I to find it very bothersome to inform the truth however I’ll surely come
    again again.

  3. Pretty great post. I simply stumbled upon your blog and wanted to
    say that I have really enjoyed surfing around your blog posts.
    After all I will be subscribing on your feed and I am hoping you
    write once more very soon!

Leave a Reply

Your email address will not be published. Required fields are marked *