Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite, what am i doing wrong?
#1

[eluser]b2000b[/eluser]
Ive been trying at this for a few hours now and I just cant get mod_rewrite to remove the index.php from my ci project. Here is what I've done.

config.php
Code:
$config['index_page'] = '';
$config['uri_protocol']="REQUEST_URI";

.htaccess
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>


mod_rewirte IS enabled, it it shown in: apache2handler -> Loaded Modules -> mod_rewrite, when phpinfo(); is called.

uname -a:
Code:
Linux io.b2000b.net 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux

CI is located in: /var/www/html/b2k/
CI is accses as: io.b2000b.net/b2k
CI can be found on the Internet at http://b2000b.net/b2k

If anyone can help that be wonderful! I host this sever my self and have full root accsess to it. I can get this working fine with my VPS but I cant pinpoint what I've done wrong here.


Messages In This Thread
mod_rewrite, what am i doing wrong? - by El Forum - 04-29-2012, 06:47 PM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 03:42 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 05:58 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 07:49 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 08:44 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 08:59 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 09:16 AM
mod_rewrite, what am i doing wrong? - by El Forum - 04-30-2012, 10:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB