How to write SEO friendly urls in CodeIgniter

Hi, In this post i will going to explain about How to write SEO friendly urls in CodeIgniter using .htacess file. create  .htaccess file with the following contents. 123456DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] Then url will be http://localhost/codeIgniter/[controller-name]/[method-name] Read more…