Redirect subdomain to subfolder

Hello!

Our former website had a subdomain sub.domain.com
Our new website has a sub folder: domain.com/sub
I am trying to have this redirection: sub.domain.com ==> domain.com/sub

I added the sub.domain.com address to the wordpress_site.yml file:

wordpress_sites:
  domain.tld:
    site_hosts:
      - canonical: domain.tld
        redirects:
          - v2.domain.tld
          - www.domain.tld
          - nl.domain.tld
          - hire.domain.tld

And then I use this redirection plugin to redirect to the right page.

Unfortunately, all subdomain only redirect to the https://domain.tld/.

What am I doing wrong ?

This topic was automatically closed after 42 days. New replies are no longer allowed.