OK I found out it was much better to use Virtual Host instead, but according to EZ guide "RewriteEngine On" shall work in virtual host. But it only works in apache 1.x not in apache 2.x. http://www.ez.no/ez_publish/documentation/installation/virtual_host_setup
I have tried the following code but it will not work