Organizational Research By

Surprising Reserch Topic

how to write mod_rewrite in vhosts configuration



asked Sep 22, 2013 in APACHE by rajesh
0 votes
53 views



Related Hot Questions

1 Answer

0 votes
This should work if you have mod_rewrite loaded.
 
    Options FollowSymLinks Includes ExecCGI
    AllowOverride All
    DirectoryIndex index.html index.htm index.php
    Options FollowSymLinks Includes ExecCGI
    AllowOverride All
    DirectoryIndex index.html index.htm index.php
    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
 
    # Rewrite Rules #####################
    RewriteEngine On
    RewriteRule ^/webmedia/(.*) / [R=301,L]
    # end Rewrite Rules #################   
answered Sep 22, 2013 by rajesh

...