rverrips wrote:
> Thanks for the quick reply Robert
>
> I'm not sure what you mean with internal and external - Both the hosts
> are on the same apache server ... (internal, no?)
>
> Could you explain why the www is in brackets, and what the ^ and ?
> represent?
>
> Thanks
>
> Roy
^(www\.)?domain2\.com
This is a regular expression. The ^ means that this is the beginning of the
url string. The ? means match this if it occurs zero or one times. The
"www." is inside brackets to indicate that the ? is referring to the whole
string "www." Without the brackets, it would refer only to the ".".
So this expression says match
www.domain2.com or domain2.com but do not
match something.domain2.com or something.www.domain2.com.
HTH
Regards
Paul
>> Stay informed about: Need help with .htaccess rewrite