OrangeRind OrangeRind - 2 years ago 78
PHP Question

How to remove "index.php" in codeigniter's path

How do I remove the

sticking out in every path in codeigniter somewhere in the center?
I want clean non
index.php-fied URLs

Answer Source

If you are using Apache place a .htaccess file in your root web directory containing the following:

RewriteEngine on
RewriteCond $1 !^(index\.php|[Javascript / CSS / Image root Folder name(s)]|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Another good version is located here:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download