Awesome thank you! So I can stop looking now? That's the single cleanest version on the web?
Could you please indulge me with a couple questions? Yours differs from jdMorgans a little. 1) Why did you add a ? to html?\ HTTP/. And another ? to index\.html?$ and another after example.com)? 2) Why say it like this !^(www\.example\.com when you can seemingly simply say it like this ^example\.com$ 3) and finally why did you exclude the ^ before (.*)