CodeIgniter Forums
htaccess + virtualhost + remove index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: htaccess + virtualhost + remove index.php (/showthread.php?tid=18442)



htaccess + virtualhost + remove index.php - El Forum - 05-06-2009

[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.


htaccess + virtualhost + remove index.php - El Forum - 05-06-2009

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


htaccess + virtualhost + remove index.php - El Forum - 05-09-2009

[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.