1

I have two domains on GoDaddy (a.example, b.example). I went to the a.com DNS administration and forwarded it to b.example using a 301 type.

If I go to a.example, it correctly redirects me to b.example. But, if I go to a.example/something, the redirection doesn't work and just gives me a 404 error on a white page, leaving me in the same URL. What I would expect is that a.example/something would redirect to b.example/something or at least to b.example.

Is there a way to accomplish this?

Stephen Ostermiller
  • 98,758
  • 18
  • 137
  • 361
Multitut
  • 119
  • 3

1 Answers1

0

What you need is a 301 redirect using .htaccess file.

In your GoDaddy hosting panel, go to the file manager screen for your a.com domain, and add an .htaccess file. Then add this code and change www.yournewdomain.com to the actual domain of b.com

RewriteEngine on
RewriteRule ^(.*)$ https://www.yournewdomain.com/$1 [R=301,L]

That should then do the redirects as you described.