New domain new server and 301 redirect

Hello,

We transferred the forum to the new server and new domain. But I have to redirect URLs with 301. I did research on the forum but could not find clear information.

Thank you.

If both domains are pointing to the current server, then everything should work for http links, but will not work for https links because the certificate won’t match. You can have a look at Setting up Let’s Encrypt with Multiple Domains.

1 Like

The old site is on another server, the new site is on a new server. SSL certificates of both are different. Any other suggestions?

There are hundreds of messages on the old site and we cannot redirect them.

Are both Discourse installations? Discourse handles the change of the domain and you can just setup the old domain to redirect to the new domain, this can be done in a temporary server or via DNS (not recommended).

If the old server is still running, then you need to configure it to redirect to the new server.

The old server is a Discourse server? You changed the domain name? Why is the old server still running? Maybe just have the old server 301 to the new domain?

Yes they are both Discourse. To be more specific; We are talking about 2 different Digitalocean installations. What would be your recommendation?

So is it actually possible to redirect in itself without the need for a new server?

Yes, the old server is still active. My goal was to redirect from there to the new server and domain, with 301. So you are recommending 301 too. So how can I direct it?

Why? Is it running something other than Discourse?

If you have something else running on the server that you need to keep running, then you’d google something like “301 redirect domain NGINX” (or Apache, if that’s what you’re usijng).

If you’re just redirecting all traffic to the root of the new site you can use a free Cloudflare account and a page rule to catch http and https.

2 Likes

Actually no, only Discourse works. Since I was looking at the thing from a classic perspective, I thought I would still need the old server for 301. What exactly is the method you propose?

I recommend what I said in the second post.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.