I am doing a project in CodeIgniter 3. I need to remove index.php
from url. For that help me to get .htaccess
file for CodeIgniter 3 and also where to place this file.
This is my baseurl
http://cableandmedia.com/demo/
I am doing a project in CodeIgniter 3. I need to remove index.php
from url. For that help me to get .htaccess
file for CodeIgniter 3 and also where to place this file.
This is my baseurl
http://cableandmedia.com/demo/
In your
config.php
make following changes.And add
.htaccess
file in main project directory with following contentWell,
Here what I did,
I edited/create ".htaccess" to this
and "app/config/config.php"
and "app/libraries/Template.php"
Cheers!
.htaccess
file atroot
of the project.htaccess
2. Remove index.php at the
root/application/config/config.php
3. If your server is new | your server rewrite mode was denied than Open Terminal Connect Your Server Via SSH Type Below Code
After that please check
AllowOverride
IsAll
or notFile: config.php
File: .htaccess
RewriteEngine allows you to rewrite URL requests that come into your server and is based on a regular-expression parser.
Update your htaccess file with the below code
and in config file, please change base url with below code:-