Tuesday, 18 February 2014

How to remove index.php from url in code igniter

Create a .htaccess file in root directory and

Copy paste this code
RewriteEngine on

RewriteCond $1 !^(index\.php|assets|robots\.txt)

RewriteRule ^(.*)$ index.php/$1 [L]
where assets is the folder in the root directly containing all your assets Ref

No comments:

Post a Comment