# Best way to redirect mysite.com to forums.mysite.com/landing?

**URL:** https://meta.discourse.org/t/best-way-to-redirect-mysite-com-to-forums-mysite-com-landing/301973
**Category:** Self-hosting
**Created:** [April 2, 2024, 12:33am UTC](https://meta.discourse.org/t/best-way-to-redirect-mysite-com-to-forums-mysite-com-landing/301973 "2024-04-02T00:33:42Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [April 2, 2024, 12:38am UTC](https://meta.discourse.org/t/best-way-to-redirect-mysite-com-to-forums-mysite-com-landing/301973/3 "2024-04-02T00:38:47Z")

</div>

> [@(Superseded) Redirect additional domain(s) to your Discourse instance](https://meta.discourse.org/t/superseded-redirect-additional-domain-s-to-your-discourse-instance/18492/1):
>
> In this tutorial we’ll show how to redirect `www.example.com` and `example.com` to `talk.example.com`

@Lilly Would it be possible to move the forums entirely to the base domain name? So that `mysite.com` would just be the forums?

> [@(Superseded) Redirect additional domain(s) to your Discourse instance](https://meta.discourse.org/t/superseded-redirect-additional-domain-s-to-your-discourse-instance/18492/1):
>
> Update the A record for the domain(s) you want to redirect to original domain.

Also, I already have an A record that points to my VPS’ IP, where the forums are hosted. So do I now forward my base domain’s URL to that IP or keep it as `forums.mysite.com`? I’d mostly likely just CNAME my `mysite.com` to the A record of `forums.mysite.com`, right?

Is this correctly done? I want to forward `mysite.me` to `forums.mysite.me/landing`

```plaintext
  after_web_config:
    - replace:
        filename: /etc/nginx/nginx.conf
        from: /sendfile.+on;/
        to: |
          server_names_hash_bucket_size 64;
          sendfile on;
    - file:
        path: /etc/nginx/conf.d/forumsredirect.conf
        contents: |
          server {
            listen 80;
            server_name mysite.me;
            return 301 $scheme://forums.mysite.me/landing$request_uri;
          }

```

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-redirect-mysite-com-to-forums-mysite-com-landing/301973)._
