I'm attempting to redirect /folder to / using .htaccess but all shall we be held getting may be the Apache HTTP Server Test Page. My root directory appears like this:

/
.htaccess
-/folder
-/folder2
-/folder3

My .htaccess appears like this:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/folder/
RewriteRule ^(.*)$ folder/$1 [L]

What shall we be held doing wrong? I checked my httpd.conf (I am running Centos 5.3) and also the mod_rewrite library has been loaded. Like a side note, my server isn't a www server, its just a virtual machine so its hostname is centosvm.

Addition: I've discovered the mod_rewrite module is loaded, but none of them of my .htaccess redirects appear to become working.

Addition: My httpd.conf directory directive appears like:

<Directory />
    Options FollowSymLinks
    #AllowOverride None
</Directory>

Exactly what does you AllowOverride say? (see: http://httpd.apache.org/docs/2.0/howto/htaccess.html)


Which will bring us to needing this in (virtual)host/directory configurations:

AllowOverride FileInfo