Hi all,
It could be my server configuration, but a rule like the following
will create a never ending redirect loop.
<rule>
<condition name="host" operator="equal">
example.com</condition>
<from>^/(.*)$</from>
<to type="redirect">
http://www.example.com/$1</to>
</rule>
I'm attempting to redirect non-www requests to www. However, both the
www and non-www URLs will match on the host conditional above. Can
regular expressions be used in the host condition so that I could
specify no www (I actually tried this, but it didn't work - or my reg
ex sucked)? Or is there a better way to do this?
The workaround I've found is to use "notequal" and specify every other
host name I _don't_ want redirected. However, we're serving quite a
few different domains from our CMS so that list is long, and it feels
hackish.
Any suggestions?
Thanks,
--Nicole