![]() |
Beginner: Getting "index.php' to go away - 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: Beginner: Getting "index.php' to go away (/showthread.php?tid=58906) |
Beginner: Getting "index.php' to go away - El Forum - 08-02-2013 [eluser]agentkirb[/eluser] Edit: my bad, said it didn't work but it turns out I messed up and it DOES work. Thanks Beginner: Getting "index.php' to go away - El Forum - 08-02-2013 [eluser]jairoh_[/eluser] add an .htaccess file with this content. Code: RewriteEngine on hope this help sir Beginner: Getting "index.php' to go away - El Forum - 08-02-2013 [eluser]PravinS[/eluser] Refer: http://ellislab.com/codeigniter/user-guide/general/urls.html Beginner: Getting "index.php' to go away - El Forum - 08-02-2013 [eluser]agentkirb[/eluser] [quote author="jairoh_" date="1375493485"]add an .htaccess file with this content. Code: RewriteEngine on hope this help sir[/quote] I created an .htaccess folder in the CodeIgniter folder (the one with application/system and all that). Added those rules, toggled $config['index_page'] to equal empty string (''). And now it's saying access forbidden to those websites (lhttp://localhost/CodeIgniter/averages as well as index.php/averages). So I'm wondering if I need to add a way to view the averages controller or averages view (I guess it's the view that outputs everything). I'll look at the URL guide to see if there's anything there. Edit: Wow I suck at editing, accidently updated the OP. Anyways, the problem is solved. Thanks for the help. |