Hi,
I have a couple of domains mapped to one main domain. Is there anything i can actually add say in the .htaccess file that will redirect a domain to the primary domain?
Thanks
Ben
-
☆ A M B ☆
- 24,524 Posts
Those are part of the "regular expressions" that specify which gets changed to what. A good explanation here:
http://corz.org/serv/tricks/htaccess2.php
^ Start of line anchor
$ End of line anchor
An anchor explicitly states that the character right next to it MUST
be either the very first character ("^"), or the very last character ("$")
of the URI string to match against the pattern, e.g..
^foo(.*) matches foo and foobar but not eggfoo
(.*)l$ matches fool and cool, but not foo