Redirect subdomain homepage

#132059
  • Hi, i want to know if it’s possible to redirect my subdomain’s homepage to my root domain (or another subdomain)? Here’s why I want to do that:

    • domain.com –> main website
    • info.domain.com –> all my landing pages are in there

    Since my subdomain is for my landing pages only, i don’t use it’s homepage info.domain.com for anything. Rather, i want to redirect that to my main website. So the only way people land on my subdomain is through direct links/ads (e.g. info.subdomain.com/landing-page-1). In case they do remove the URL or say click on the logo (which is by default linked to the homepage), i want them to lead back to the main domain.

    Based on some tickets i read and trying it out on the redirection manager (i.e. using only / in the source URL), it results in an error. So was hoping to find a way to do this without adding another plugin.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you so much for getting in touch.

    Rank Math cannot be used to redirect a homepage or any URL not hosted on the website where Rank Math isn’t installed.

    You will have to use a .htaccess redirect to make that happen:
    https://www.whoishostingthis.com/resources/htaccess/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.