Welcome Guest, Not a member yet? Register   Sign In
need help with removing index.php
#1

[eluser]CI705[/eluser]
hi all,
I am really struggling with the removal of index.php for hours.
I have been following the steps in http://codeigniter.com/wiki/mod_rewrite/ (except step4 coz i don't really know where to chagne it) but with no luck.

i am using
Quote:debian squeeze
apache 2.2
mysql 5.1
php 5.3

here is the structure in the www folder
Quote:/var/www
`-- CI
|-- application
|-- images
|-- index.php
|-- license.txt
|-- style
|-- system
`-- user_guide
and the .htaccess, which i put it inside the CI folder as well
Quote:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /CI/

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>
and this is the httpd.conf
Quote:#SeverName 127.0.0.1

here is the config.php
Quote:$config['base_url']= 'http://127.0.0.1/CI';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
I can only access the http://127.0.0.1/CI/index.php/welcome but not http://127.0.0.1/CI/welcome
I am really frustrated on this problem and i can't solve it myself.
thanks for any help.


Messages In This Thread
need help with removing index.php - by El Forum - 07-28-2011, 01:16 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:15 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:35 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:45 AM
need help with removing index.php - by El Forum - 07-28-2011, 03:44 AM
need help with removing index.php - by El Forum - 07-28-2011, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB