Welcome Guest, Not a member yet? Register   Sign In
Remove the index.php htaccess Problem
#1

[eluser]CodeIgniter Web[/eluser]
Hi friends,

My folder structure,

www
codeigiter
system
user_guide
js
css
index.php
admin.php
.htaccess

system/application/config/config.php

$config[‘index_page’] = “”;
and
$config[‘uri_protocol’] = “REQUEST_URI”;

MY .htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css)
RewriteRule ^(.*)$ /codeigniter/index.php/$1 [L]

But 500 Internal Server Error . Please guide me the remove of index.php
#2

[eluser]Bas Vermeulen[/eluser]
Check this topic: http://ellislab.com/forums/viewthread/170644/

You need the following .htaccess

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /codeigniter/index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /codeigniter/index.php
</IfModule>
#3

[eluser]Watermark Studios[/eluser]
Be sure to check out the CI Wiki regarding Mod_Rewrite. Link Here

If you are getting a 500 error, chances are that you don't have your apache config file loading the mod_rewrite module. You may also want to check the directory settings. This works for me:

Code:
<Directory "/some/absolute/path/htdocs">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>

Thanks,

Ken
#4

[eluser]Bas Vermeulen[/eluser]
n1 Ken never seen that wiki before!




Theme © iAndrew 2016 - Forum software by © MyBB