How to set all pages of a subdomain to redirect to a single page? <p>Let's say my domain name is <strong>website123.com</strong> and I have a subdomain of <strong>my.website123.com</strong></p> <p>I've deleted the "my" subdomain from the site and want to make sure that anyone that goes to any page with a my.website123.com URL is redirected to the main www.website123.com URL. The "my" subdomain has a ton of pages of it, so I need to make sure that regardless of which page a user goes to on the "my" subdomain, that they're redirected to the site's main index page.</p> <p>I was thinking to get this accomplished through .htaccess - is that the best way? If yes how?</p>