I am having trouble getting URL rewriting to work. I have tried everything I can think of. I have checked all possible places where AllowOverride is set to None and changed it to All. mod_rewrite is itself enabled, I have restarted Apache several times. My vhost looks as below
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.abc.ac.uk
ServerAlias www.abc.ac.uk
DocumentRoot /var/www/testRewrite
RewriteEngine ON
RewriteRule ^/test /TestMe.html
<Directory /var/www/testRewrite>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
RewriteLogLevel 8
RewriteLog /var/log/rewrite.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The request does not get forwarded to TestMe.html. The rewrite.log is empty. What am I doing wrong and how could I debug this?
access.log
? Does anything else write to that log? Do you have any other vhosts?