Koozali.org: home of the SME Server

Rewrite rules

ElFroggio

Rewrite rules
« on: October 28, 2006, 02:24:02 AM »
I want to have some rewrite rules for each ibay. The rules are different. Such as:

Code: [Select]
<VirtualHost test.ca:80>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^test.ca [NC]
    RewriteRule ^(.*)$ http://www.test.ca$1 [L,R=301]
</VirtualHost>


This is rule is permanent redirect from http://test.ca to http://www.test.ca. Where do I put it?  80VirtualHosts is for all hosts:

1. How do I differentiate each vhost
2. Is this going to be overwritten by the next update?

Thanks