mod rewrite problem

I have the following rewrite code in my httpd.conf:

RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^[^.]+\.example\.com$
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteCond %{HTTP_HOST} !^host\.example\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]

RewriteRule ^([^.]+)\.example\.com/([a-z0-9\-]+).html http://www.example.com/front/index.php?subdomain=$1&module=$2&view=index

However, when I access bla.example.com/page.html it displays in the browser bar as http://www.example.com/index.php?sub...e&view=index..

I was under the impression that mod_rewrite could do internal redirects without the user knowing about it. What have I done wrong and how can I accomplish that?

Thanks

 

 

 

 

Top