[wp-hackers] OT: htaccess and two domains...
wp at xentek.net
Fri Mar 21 00:39:41 GMT 2008
> <VirtualHost XXX.XXX.XXX.XXX:80>
> ServerName domain.com
> ServerAlias www.domain.com
> ServerAlias domain.net
> ServerAlias www.domain.net
Actually... this is all you really need to do. WP is going to drive
off the domain set up in the options. Once the domains are aliased,
then WP will handle the rest, since all links will lead to which ever
one you set up as primary.
You only need to get fancier if you worried about Canonical URLs etc.
More information about the wp-hackers