Integrate and Set htaccess file and routes file in CodeIgniter

PHP 0 Comments

Integrate and Setup the  .htaccess file in the main folder and setup the routes file in CodeIgniter It is very easy to install CodeIgniter.How to download and Setup .htaccess file in PHP CodeIgniter Framework and routes file in config.php. How to setup a URL path and SEO friendly path in CodeIgniter Framework and write path used in htaccess file and routes file in CodeIgniter Framework.


.htaccess : file set in main folder like that

Folder :    CodeIgniter/


DirectoryIndex index.html index.php

RewriteEngine On
RewriteBase /codeIgniter/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [L]


Main page Set a routes file




$route[‘default_controller’] = ‘home’;




share..Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0