Redirect Subdomain to Homepage

Hi, I have a website and a subdomain

Now, I want to redirect all the all the posts in subdomain that start with to homepage

Please help me with the htaccess code for the same

Hey @Hussain_Ahmed

That’s a sub-directory not a sub-domain. That is simply a page name on the same site. Sub domains are actually not a part of the parent domain name file structure.