title: mod_rewrite in vhosts configuration
body: <p>I'm trying to add mod_rewrite rules in the vhost config but it's not working.
  For the site "mysite.com" I want to redirect "/webmedia/" to the home page .</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>&lt;VirtualHost 192.168.100.142:80&gt;
      ServerAdmin serveradmin@bbgi.com
      DocumentRoot /home/drupal_1
      ServerName mysite.com
      ServerAlias www.mysite.com
      Alias /movies /home/movies/
      ErrorLog /var/log/httpd/mysite.com_err_log
        CustomLog /var/log/httpd/mysite.com_log special
      &lt;Directory /home/drupal_1&gt;
        Options FollowSymLinks Includes ExecCGI
                AllowOverride All
                DirectoryIndex index.html index.htm index.php
  
        # Rewrite Rules #####################
        RewriteEngine On
        RewriteRule ^/webmedia/(.*) / [R=301,L]
        # end Rewrite Rules #################
  
      &lt;/Directory&gt;
      &lt;Directory /home/movies&gt;
        Options FollowSymLinks Includes ExecCGI
                AllowOverride All
                DirectoryIndex index.html index.htm index.php
      &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>