2

I have two domains and they both point to the same Wix.com site. When I navigate to either domain the URL is always for that domain. The domains are both managed through domain.com

I want to be change this so that anytime domain1 is visited it redirects to domain2, so when visiting the Wix.com site it will never show domain1 as the URL.

The changes need to be made in the DNS records or in Wix.

EDIT: corrected last sentence of first paragraph

2
  • What do you mean that "the domains are both on example.com?" Does that mean that they are subdomains like foo.example.com and bar.example.com? Commented Sep 10, 2022 at 9:47
  • @StephenOstermiller , sorry that should have read "The domains are both managed through domain.com". My apologies Commented Sep 10, 2022 at 19:04

1 Answer 1

-1

"The changes need to be made in the DNS records or in Wix." are you sure?

If I was doing this, I would use a .htaccess redirect

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www.olddomain.com$
  RewriteRule (.*)$ https://newdomain.com/$1 [R=301,L]
</IfModule>
7
  • 2
    How do you get to the .htaccess on Wix.com? Commented Sep 10, 2022 at 5:07
  • @user1150103, apologies, I misread the question and thought one was a wix site and the other was redirecting to it, in which case there might be a .htaccess file. But that would be a way to make it work.
    – Steve
    Commented Sep 10, 2022 at 10:42
  • Ok, that makes sense. Unfortunately, everything needs to be managed through domain.com or Wix.com Commented Sep 10, 2022 at 19:05
  • 1
    doesn't domain.com include redirection?
    – Steve
    Commented Sep 10, 2022 at 23:59
  • 1
    Transfer the domain to somewhere that does include redirection
    – Steve
    Commented Sep 11, 2022 at 21:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.