Welcome Guest, Not a member yet? Register   Sign In
Setting up mod_rewrite on Apache 2 (XAMPP)
#5

[eluser]playaz[/eluser]
Hi mate,

You'll basically need to do the following :-
1) make sure you enable mod_rewrite in Apache, simply find this line below and make sure it is NOT commented out in your httpd.conf file
LoadModule rewrite_module modules/mod_rewrite.so

2) Also create a .htaccess file, this needs to be within the root directory and make sure you don't remove the index.php file (as it is still required even though it doesn't appear to be).
The .htaccess I am using is as follows:-
# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Restart the Apache service and it should work fine now :-)

Hope that helps


Messages In This Thread
Setting up mod_rewrite on Apache 2 (XAMPP) - by El Forum - 06-13-2009, 06:50 AM
Setting up mod_rewrite on Apache 2 (XAMPP) - by El Forum - 06-13-2009, 07:06 AM
Setting up mod_rewrite on Apache 2 (XAMPP) - by El Forum - 06-14-2009, 02:44 AM
Setting up mod_rewrite on Apache 2 (XAMPP) - by El Forum - 06-14-2009, 02:48 AM
Setting up mod_rewrite on Apache 2 (XAMPP) - by El Forum - 06-14-2009, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB