CodeIgniter Forums
CodeIgniter URLs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CodeIgniter URLs (/showthread.php?tid=3152)



CodeIgniter URLs - El Forum - 09-12-2007

[eluser]Kurtis[/eluser]
I have read the userguide, and follow the insctructions, but thing just deoesn't seem to work.
I have the following .htaccess file:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

and in the config file:
$config['index_page'] = "";

but on my page, when I click on login I have this error:
The requested URL /index.php/login was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


CodeIgniter URLs - El Forum - 09-12-2007

[eluser]sikkle[/eluser]
Tell us what kind of environnement you use (windows, mac) kind of server apache etc etc.

thanks.


CodeIgniter URLs - El Forum - 09-12-2007

[eluser]Derek Allard[/eluser]
I'm not sure that this is what you want, but this might be helpful. http://codeigniter.com/wiki/mod_rewrite/

Welcome to CodeIgniter Kurtis.


CodeIgniter URLs - El Forum - 09-12-2007

[eluser]esra[/eluser]
Try this .htaccess.

Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]