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?

  • What do you mean by "on GoDaddy?" Is GoDaddy your registrar your DNS, or your web host, or all three? If you have hosting there, which hosting plan are you on? Commented Apr 16, 2023 at 21:45
  • BTW, I don't recommend using GoDaddy's forwarding services that are available through their DNS administration. They have problems that for me are a non-starter. See: GoDaddy's 301 redirect/forwarding has some weird random middleman URL, kills link juice? Commented Apr 16, 2023 at 21:48
  • Does your DNS administration have an option for "Wild Card Redirect"? This is from my cPanel: "Checking the Wild Card Redirect Box will redirect all files within a directory to the same filename in the redirected directory."
    – Tim R
    Commented May 19, 2023 at 4:26

1 Answer 1


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.

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.