Integrate and Set htaccess file and routes file in CodeIgniter

Technology 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/

Daily Visit GK on myshort.in

—————

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

 

codeIgniter\application\config.php

 

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

 

 

 

Buy online Rajasthan gk book Railway JE CBT REET PAtwari Book SSC CGL Clerk GD Book Buy online Rajasthan gk book Railway JE CBT REET PAtwari Book SSC CGL Clerk GD Book

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