1

i have try a few solution from any source, but still cannot remove index.php if my project in other folder like : http://localhost/project/my_codeigniter, all .htaaccess and configuration work fine if my project in http://localhost/my_codeigniter.

hope you can help me, thanks!

Raynaldo
  • 21
  • 5

1 Answers1

1

You can create a .htaccess file on your project root folder. File content like this;

RewriteEngine on
RewriteCond $1 !^(index\.php|assets)
RewriteRule ^(.*)$ /your-project/index.php/$1 [L]
Onur KAYA
  • 234
  • 1
  • 9
  • work! thanks brother! -> 'RewriteRule ^(.*)$ /project/my_codeigniter/index.php/$1 [L]' i have see something like this in https://stackoverflow.com/a/39673870/5614176, but forget replace 'your-project' by full project path base on localhost, thanks! – Raynaldo Mar 03 '19 at 09:12
  • Not important. Can you mark it as an answer? Thanks. – Onur KAYA Mar 03 '19 at 09:23