Hola! after searching in the Meta and Google I’m not sure what’s the best way to proceed.
Background
I have a community with 15,8k topics, 967k posts, tons of images linked to S3. The forum is running under a subdomain (xxx.domain.com), and this yeah I want to migrate it to the root domain (domain.com)
Where am I lost?
I’m not an SEO expert, but as far as I know, the best way is forcing the 301 redirections, so that Google understands the change and it doesn’t affect to the positioning nor PageRank.
I know how to do this kind of redirection in custom websites or CMS like WordPress, but I’m not sure how to address this massive redirection with Discourse.
Is there something like best practices with Discourse?
I’ve achieved this with a plugin for a site migrated from wordpress. As Wordpress uses slugs in the url which are almost similar to discourse slugs, I’ve created such a rule via the plugin. https://github.com/paviliondev/discourse-articles