Welcome Guest, Not a member yet? Register   Sign In
Getting rid of index.php
#2

[eluser]Yadi Utama[/eluser]
I think you have to make a .htaccess file into your root folder. Insert the list of codes below into your .htacces file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>

But, you have to set the httpd.conf in your Apache webserver first as following instruction:
1. Make sure to unblock this line of code in your httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so

2. Check the following code in your httpd.conf

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
#AllowOverride all

3. Make sure to unblock "AllowOverride All" as shown above. So it will be:
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

4. Restart your httpd service

I think it will work as i have ever done with it. Good luck but i'm sorry because of my english not good.


Messages In This Thread
Getting rid of index.php - by El Forum - 06-28-2009, 05:20 PM
Getting rid of index.php - by El Forum - 06-28-2009, 06:11 PM
Getting rid of index.php - by El Forum - 06-28-2009, 06:21 PM
Getting rid of index.php - by El Forum - 06-28-2009, 07:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB