My project (codeigniter) runs on Windows 7
Now my URL looks like:
http://dev.something.com/index.php/reports
and I want:
http://dev.something.com/reports
I try to hide index.php
from my URL in order to get access to controller.
From this link I took .htaccess
So my .htaccess looks like:
Options +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^(index\.php|app|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
But this change didn't help me.
Important:
I cleared all data from .htaccess but nothing happened. Sounds like Codeigniter don't see .htaccess
.htaccess
stays under my root project a.e.:
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\someprog_dev\.htaccess
[EDIT 1]
The same project works fine on Linux so its not codeigniter configuration problem
[EDIT 2]
I change .htaccess
to be sure that codeigniter uses .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /blogna/index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
Nothing happens. Works with index.php
but not without one.
[EDIT 3]
My httpd.conf
looks like:
....
LoadModule rewrite_module modules/mod_rewrite.so
...
LoadModule php5_module "c:/php/php5apache2_2.dll"
<IfModule php5_module>
AddType application/x-httpd-php .php
PHPIniDir c:/php/
DirectoryIndex index.php index.html
</IfModule>
Did I miss something? any suggestions