07-28-2011, 01:16 AM
[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
here is the structure in the www folder
here is the config.php
I am really frustrated on this problem and i can't solve it myself.
thanks for any help.
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/wwwand the .htaccess, which i put it inside the CI folder as well
`-- CI
|-- application
|-- images
|-- index.php
|-- license.txt
|-- style
|-- system
`-- user_guide
Quote:<IfModule mod_rewrite.c>and this is the httpd.conf
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>
Quote:#SeverName 127.0.0.1
here is the config.php
Quote:$config['base_url']= 'http://127.0.0.1/CI';I can only access the http://127.0.0.1/CI/index.php/welcome but not http://127.0.0.1/CI/welcome
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
I am really frustrated on this problem and i can't solve it myself.
thanks for any help.