How to remove index.php from codeigniter 2.0.2 |
[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
[eluser]praveens[/eluser]
Try this one Code: RewriteCond %{REQUEST_FILENAME} !-f Cheers!!!!!!!
[eluser]LuckyFella73[/eluser]
Afaik the "RewriteBase" has to be a relative path. Did you try all possible types of $config['uri_protocol'] ?
[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...
[eluser]IgnitedCoder[/eluser]
Try this one on for size, works for me: Code: ErrorDocument 404 /index.php
[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>
[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?
[eluser]appleboy[/eluser]
Hi, Try the following code of .htaccess on your Ubuntu Code: <IfModule mod_rewrite.c>
[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. |
Welcome Guest, Not a member yet? Register Sign In |