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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -