יצירת הפניות 301 מאתר Discourse ישן לאתר חדש

I would just connect the old domain name to a cpanel hosting (or any hosting at all, something to host the domain) and then using htaccess make the redirect. Since the old domain is being redirected and all the content is already migrated, the goal is to redirect the old domain name to the new one. Considering that, it doesn’t matter if the old domain is still contented to a discourse install.

This way you don’t even have to keep the old server’s instance.

You can use something like this:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ https://new-example.com/$1 [L,R=301]

Above code will follow the old links to new ones. So if the old url is old-example.com/t/anything , it will be redirect to new-example.com/t/anything

6 לייקים