Redirection All URL of subdomain to main domain

I have a website. I was maintaining a subdomain. Now i turned it to subdirectory.
Subdomain: hindi.socialstatusdp.com/
Subdirectory: socialstatusdp.com/hindi/
Main domain: socialstatusdp.com/

I want to redirect all subdomain url to subdirectory or main domain home page. Can anyone help me to do it. I delete my subdomain by mistake now it is not working. But i have all 27 articles links url that i want to forward to main domain or subdirectory.

Domain purchased with GoDaddy.
Hosting: hostinger
Using Cloudflare for dns.

Do you want all requests for hindi.socialstatusdp.com/something to be redirected to https://socialstatusdp.com/hindi/something

There are several ways to do this.

A page rule with the URL set to hindi.socialstatusdp.com/*, choose “Forwarding URL” as the setting, and the destination URL as https://socialstatusdp.com/hindi/$1.

You can also use Redirects to do the same thing.

1 Like