Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The "RewriteDomainToPath" page has been changed by RichBowen:
http://wiki.apache.org/httpd/RewriteDomainToPath?action=diff&rev1=4&rev2=5

- Note: The rules described here are intended to go in a .htaccess file. If you 
have access to the main server configuration, the technique described here is 
unnecessary, as you should be using a simple Redirect in a <VirtualHost> to 
accomplish this.
+ Note: The rules described here are intended to go in a .htaccess file.
  
  We recently needed to move several hundred mail domains from standard http
  to SSL secured HTTP (HTTPS). To do so, we chose one domain and used
  mod_rewrite to redirect to that domain. To make things more complicated, we
  also wanted to strip off the first part of the domain name.
+ 
+ If you were doing this for just one domain (or a small number) then you 
should be using a simple Redirect in a <VirtualHost> to accomplish this. 
However, since we needed to do it for a large number of domains, mod_rewrite 
was necessary to capture the hostname in a dynamic fashion.
  
  As an example, our users were visiting:
  {{{

Reply via email to