After trying several solutions I just can't seem to get this to work.
I owned a .org and had urls like
http://mydomain.org/view/3242343
http://mydomain.org/login
http://mydomain.org/page/5
and I now have the .com and want all of them to be taken right to their .com equivalents:
http://mydomain.com/view/3242343
http://mydomain.com/login
http://mydomain.com/page/5
etc.
The rules I've tried so far seem to take any URL from .org and just send them to the root of mydomain.com.
What htaccess rule do I need?
Thanks,
Assuming it's an
.htaccess
in theDocumentRoot
of the .org site (and not the .com site, which would need aRewriteCond
to prevent a redirect loop):