5

Mod_rewrite and relative substitution paths in virtualhost context

view full story
linux-howto

http://serverfault.com – I'm trying to simply rewrite: http://www.example.com/home to http://www.example.com/home.php I'm not using .htaccess, but setting rewrite rules in a vhost: <VirtualHost *:80> DocumentRoot /Users/me/Sites/mysite ServerName mysite.air.local RewriteEngine On RewriteLog /var/log/apache2/rewrite.log RewriteLogLevel 6 RewriteRule ^/home$ home.php <Directory /Users/me/Sites/mysite> AllowOverride none </Directory> </VirtualHost> The rewrite is logged like this: 127.0.0.1 - - [16/Feb/2012:11:24:03 +0100] [mysite.air.local/sid# (HowTos)