How do you redirect one domain to the file-path of another domain

I have two domains.



I want to make it so that when you type in the second domain. The browser redirects to the following “Revivify - A reverse metroidvania”(3).

Additional notes:

  • The html and associated files are stored on github

  • I used a _redirect file and managed to redirect 2.) → 1.) but not 2.) → 3.) (which is what i want)

Hey @mza299

Much the same as the redirect you likely have in place (can only guess as you haven’t posted the contents)   301!

Note: the ! at the end of the 301 forces the redirect even if there is content.

I have tried this and it does not work: 301!

This gets redirected to itmo Somehow it ignores the “/revivify”.

It appears to be working fine.

Partially correct. I just realised that it works differently in different browsers:

With Edge and Safari(on my Iphone) it works fine.

With Firefox and Chrome it redirects to but not …/revivify.html.

What could this be and how can I fix this?

Thank you.

Hey @mza299 , it looks like the redirect is not for the domain hosted by Netlify. If you check the domain settings for your site, you will see that we are hosting (note the “WWW” in front).

If you change your redirect rule as follows: 301!

then things should work as expected. Please let us know if that does not work and we can go from there.

Thank you for your help. This solved the isssue. yipeeee.