![]() |
Remove index.php file - 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: Remove index.php file (/showthread.php?tid=18362) |
Remove index.php file - El Forum - 05-04-2009 [eluser]Arun Joshi[/eluser] Hi, I have some problem regarding my root folder installation. Its working now, but I want to change it. Now I have Code: http://localhost/CodeIgniter/index.php/welcome I need change it into Code: http://localhost/CodeIgniter/welcome Presently I have no .htaccess file in my root, How can I change it, If a .htaccess file is required what should be its content? Remove index.php file - El Forum - 05-04-2009 [eluser]Jagar[/eluser] You may need to look at this page: http://ellislab.com/codeigniter/user-guide/general/urls.html Remove index.php file - El Forum - 05-04-2009 [eluser]n0xie[/eluser] Or try here: http://codeigniter.com/wiki/mod_rewrite/ Remove index.php file - El Forum - 05-07-2009 [eluser]Arun Joshi[/eluser] I am using wamp server with Apache/2.2.4 (Win32) PHP/5.2.4 configuration. now my CI sample site working from Code: http://localhost/CodeIgniter/index.php/decode I need change it into Code: http://localhost/CodeIgniter/decode I followed instructions from Code: http://codeigniter.com/wiki/mod_rewrite/ Now when I access page 'http://localhost/CodeIgniter/decode', it will display my wamp server default localhost home page. But browser url shows 'http://localhost/CodeIgniter/decode'. When I copy these directory info into my .htaccess, Code: <Directory "/some/absolute/path/htdocs"> I am getting '500 internal server error'. Then I tried the following code in .htaccess file. Code: <Directory "/some/absolute/path/htdocs"> But it still showing '500 internal server error' error. Actually what should be the <Directory "/some/absolute/path/htdocs"> path for me? Does my .htaccess file in its right place? I have created the .htaccess file in my codeigniter folder.(outside system folder). Does my .htaccess file location is correct? my physical path is Code: E:\wamp\www\CodeIgniter Thanks, Remove index.php file - El Forum - 05-07-2009 [eluser]Evil Wizard[/eluser] the sample .htaccess you want to start off with is Code: RewriteEngine On Remove index.php file - El Forum - 05-07-2009 [eluser]Arun Joshi[/eluser] Hi Evil, Thanks for your response. But the above lines are already in my .htaccess file. Code: <IfModule mod_rewrite.c> What should be the ' <Directory "/some/absolute/path/htdocs">' value for me? Remove index.php file - El Forum - 05-07-2009 [eluser]Daniel Moore[/eluser] Arun, The "<Directory " portion of that should be going into the httpd.conf file for apache, not in an .htaccess file. The .htaccess file is already per directory, so you just need to add the options and allow lines. I think you'll find the heavily documented .htaccess file the following link helpful: http://www.danielwmoore.com/remove_index_from_codeigniter Also, read on what to do to your config.php file as well, also on that page. That link should get you up and running. |