how to remove index.php from uri - 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: how to remove index.php from uri (/showthread.php?tid=23213) |
how to remove index.php from uri - El Forum - 10-03-2009 [eluser]vantao[/eluser] my project structure is: ——root- |-system- |-application |-cache |-... |-index.php my .htaccess is: Quote:RewriteEngine on while i put .htaccess with the same level with system folder and index.php,it returned nothing.while i check the access.log,there is a 404 message. then i put .htaccess under system folder,the same level with application folder, it works,but only to index.php,while i’m trying to access other target without typing index.php in uri, i got a 404 message too. what’s wrong?anyone help me? thanks! how to remove index.php from uri - El Forum - 10-03-2009 [eluser]skunkbad[/eluser] You need to go into the config/config.php and delete "index.php" how to remove index.php from uri - El Forum - 10-04-2009 [eluser]vantao[/eluser] [quote author="skunkbad" date="1254650157"]You need to go into the config/config.php and delete "index.php"[/quote] I did it , but the page i requested keep loading without return anything, i checked access.log,there is 404 message too? in addition,the .htaccess file above doesn't work under root folder until i add this two line: Quote:RewriteCond %{REQUEST_FILENAME} !-f what's wrong? I am using ZendServer, the mod_rewrite is loaded default!! tks |