404 and 301 redirects

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.39
How are you able to access your server: SSH

Describe your issue

DNS alone cannot send a browser to a new URL path; it only translates names to IPs.
Without well-thought-out redirect rules on the web server, I get a lot of 404s in my search results.

My situation is:
Two domains.

  • domain.one and domain.two, both transfered to my server, where YunoHost is working.
  • domain.one (old website) has the same ip address (DNS) and redirects to domain.two (new website)

My issue is:

  • domain.one contained my old website but it doesn’t exist anymore (I removed it)
  • When I search my name by using a search-engine my old website (domain.one) has a lot of 404 errors now. How can I solve these 404 errors, any suggestions? Normally I would solve this with 301 redirects by using an htaccess file.

As I’m an YunoHost-beginner and willing to learn, I drop this question here. Hope you can help me out with this.

Share relevant logs or error messages

Untill now I don’t have an error message.