|Posted: 26 November 2010 at 6:41am
Had a search and could not find this covered elsewhere, so here goes...
I am using ISAPI Rewrite on IIS 6 (Windows 2003), and want to force people to use the full "www" prefix when coming to the site.
So, if someone comes with the following URL:
I want to re-write the request to this...
I searched on the web and found what was supposed to be a solution, but when I tried it, it gave an error and I could not get to any pages served at all! Hence I took it out.
This is what I started with...
# force proper www. prefix on all requests
RewriteCond %HTTP_HOST ^test\.com
RewriteRule ^/(.*) http://www.test.com/$1 [RP]
Which I tried, but it did not work. Unfortuantley, rules and regular expressions are not my bag, so I was hoping someone could provide a working sample to solve my problem!
Many thanks in advance...
Perfect florida villas for vacation rental.