How to remove index.php from codeigniter 2.0.2 - 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: How to remove index.php from codeigniter 2.0.2 (/showthread.php?tid=44252) |
How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]mi6crazyheart[/eluser] Ok!!! i know it's pretty old question & there are a lot of info available on CI forum.. but, i really now in trouble in this particular issue(remove index.php). I tried out a lot tweaks & tricks available over in forum but yet have not get any luck. Hope, u guys give me some help to figure out this problem. Here is some info about my dev. enviroement... OS: ubuntu 10.04 LTS Done apache 2 mod_rewrite by following this tuto : http://goo.gl/tglai My .htaccess file Code: <IfModule mod_rewrite.c> vb : Root folder name where i've stored all my codeigniter files Update my config.php by making following changes * $config['index_page'] = ''; * $config['uri_protocol'] = 'REQUEST_URI'; I'm using sub-folders to organize my controller files. Don't know, whether this has any links to that .htaccess or not. Regards Suresh How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]praveens[/eluser] Try this one Code: RewriteCond %{REQUEST_FILENAME} !-f Cheers!!!!!!! How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]mi6crazyheart[/eluser] @Praveens Nops buddy, not working... How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]LuckyFella73[/eluser] Afaik the "RewriteBase" has to be a relative path. Did you try all possible types of $config['uri_protocol'] ? How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]mi6crazyheart[/eluser] @luckyfella73 I've changed that "RewriteBase" to Code: RewriteBase /vb/ & tried it with all the possible "url_protocol" but still now no luck... How to remove index.php from codeigniter 2.0.2 - El Forum - 08-09-2011 [eluser]IgnitedCoder[/eluser] Try this one on for size, works for me: Code: ErrorDocument 404 /index.php How to remove index.php from codeigniter 2.0.2 - El Forum - 08-10-2011 [eluser]hellogxp[/eluser] <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php/$1 [QSA,PT,L] </IfModule> How to remove index.php from codeigniter 2.0.2 - El Forum - 08-10-2011 [eluser]danmontgomery[/eluser] Let's all stop posting random htaccess files, especially ones that clearly won't work for him. @mi6crazyheart, can you please post your current htaccess (you were correct that RewriteBase should be /vb/), as well as an actual description of what your error is? How to remove index.php from codeigniter 2.0.2 - El Forum - 08-10-2011 [eluser]appleboy[/eluser] Hi, Try the following code of .htaccess on your Ubuntu Code: <IfModule mod_rewrite.c> How to remove index.php from codeigniter 2.0.2 - El Forum - 08-10-2011 [eluser]IgnitedCoder[/eluser] @noctrum, helping out is what makes a community a community, asking folks not to post files in the spirit of good intentions is BS. In future be more polite and remember we're all here to help. So help the guy out but don't criticize others for trying to do the same thing. |