php - Modifying .htaccess file for use with CodeIgniter library -
codeigniter library uploaded on public_html/ci/ folder. have set default controller inside application/config/routes.php default controller.
now want update .htaccess file match calls on mysite.com mysite.com/ci/index controller or mysite.com/about match mysite.com/ci/about controller, pattern use.
how can that?
add below lines .htaccess. place .htaccess file under public_html/ci/
rewriteengine on rewritebase /ci rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond $1 !^(index\.php) rewriterule ^(.*)$ /index.php/$1 [l]
Comments
Post a Comment