htaccess + virtualhost + remove index.php

#1
[eluser]Unknown[/eluser]
I have some problems with htacces to remove index.php from the URL.

I have read all the post about htaccess, but I didn't find the solution.

My configuration:
ubuntu 8.04 apache2
virtual host points to /home/myuser/www/ci and his url it's http://localhost/www/ci
inside the ci folder I have the system folder and the application/myciapplication

My htaccess:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|wms|css|captcha|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]



If my url is http://localhost/www/ci/ works
If my url is http://localhost/www/ci/user/login the error is <The requested URL /index.php/home/news was not found on this server.>

What I'm doing wrong?
Thanks for advance.

#2
[eluser]Ty Bex[/eluser]
Please read the Solution I got here from Daniel Moore
http://ellislab.com/forums/viewthread/113453/

#3
[eluser]Unknown[/eluser]
Hi tybex,
I changed the configuration for my virtualhost, on apache, and now works.
Maybe it was a wrong configuration of the virtual host.

Many thanks for the link. It's a good guide.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.