IIRF is a freely available isapi filter that allows you to do rewriting similar to mod_rewrite on IIS.
You can find iconic rewrite here : http://iirf.codeplex.com/
The following example has been tested on IIRF 1.2 and redirects all requests without the www. subdomain to the same url including the www subdomain :
the '301' is the redirect code used by IIS
to enable any module you can use the a2enmod command. To enable mod rewrite use the following:
blaba
Redirect all calls to dynamic content to index.php. Requests for static files are simply served as static files
Save the following in a .htaccess and save in root: