- Open config.php from system/application/config directory and replace
$config[‘index_page’] = “index.php” by $config[‘index_page’] = “” - Create a “.htaccess”file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it:RewriteEngine on
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] - In some case the default setting for uri_protocol does not work properly. To solve this problem just replace
$config[‘uri_protocol’] = “AUTO” by $config[‘uri_protocol’] = “REQUEST_URI” from system/application/config/config.php
Focused on Web Development, ReactJS, Angular, JavaScript, PHP, Database Design, Ionic, Jquery and MySQL
Saturday, 17 December 2016
How to remove codeignter index.php url
Subscribe to:
Post Comments (Atom)
My family always say that I am killing my time here at
ReplyDeleteweb, however I know I am getting experience everyday by reading such pleasant posts.