mod_rewrite and alias or directories
I have been trying around and i think i got it figuted out why mod_rewrite ignored the directives i gave for a directory. The simplified vhost file should explain
<VirtualHost 143.161.2.140:80>
DocumentRoot d:\Sites\app1
ServerName example.com
RewriteEngine on
RewriteLog logs/mod_rewrite.log
RewriteLogLevel 0
Alias /app2 “d:\Sites\eparcelroot\pages\eParcel”
<Directory d:\Sites\approot\pages\app2>
Options Indexes MultiViews FollowSymLinks
# without FollowSymLinks mod_rewrite does nothing in the direcotry
AllowOverride All
Order allow,deny
Allow from all
RewriteBase /app2
# without RewriteBase you’ll be stuck in the documentroot
RewriteCond %{THE_REQUEST} /download/
RewriteRule download.php/(.*)/(.*) download.php?id=$1&file=$2 [nocase,last]
</Directory>
</VirtualHost>