⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

.htaccess



co2n
  • profile picture
  • Member

Posted 08 September 2012 - 05:47 AM

hi .. I use CI and grocery_CRUD-1.3 and how to remove 'index.php' in the url: http://example.com/index.php/example?

This script does not run on. htaccess I have tried:



RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 08 September 2012 - 11:54 AM

Hello [member='co2n'] and welcome to the forum,

I think this is Codeigntier related and not grocery CRUD releated so I am moving this to General Forum.

As for your question check this out: http://www.web-and-development.com/codeigniter-minimize-url-and-remove-index-php/ and this: /topic/658-htaccess-file/