PDA

View Full Version : [SOLVED].htaccess redirect with virtual hosts


primefalcon
01-08-2010, 04:09 PM
I am trying to do a .htaccess redirect like so for a maintenance page

RewriteEngine On
RewriteBase /var/www/example/
RewriteCond %{REQUEST_URI} !index\.php$
RewriteRule .* index\.php [R=302,L]

however all I am getting back is

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, me@me.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

However everything is working fine on everything exept this virtual host, which also works fine without the .htaccess file

primefalcon
01-08-2010, 06:31 PM
Just posting since I have solved this issue

even though it was installed I needed to activate it using the command

a2enmod rewrite