How to redirect not found all sub domain to main domain

Avatar
  • Answered
Hello,

How to redirect not found all sub domain to main domain using .htaccess.


Thanks
Ajay Bairagi
Avatar
johnpaulb-imhs1

Hello Ajay,

Thank you for contacting us about redirecting subdomains. Please see our guide on Setting up a permanent 301 redirect via .htaccess.

You can also setup redirects in your cPanel, which will add the rule to your .htaccess file for you.

If you have any further questions, feel free to post them below.

Thank you,

John-Paul B