How do I redirect subdomains that do not exist?
问题 I am trying to redirect using .htaccess in the following fashion. I am not all that familiar with .htaccess, so I'm not sure it can be done. Also, I don't know if how I am intending to do it follows best practices for SEO. www.domain.com > domain.com 301 ks.domain.com > kansas.domain.com 301 ia.domain.com > iowa.domain.com 301 domain.com/sites > domain.com 301 domain.com/sites/iowa > iowa.domain.com 301 nonexistent.domain.com > domain.com 302 domain.com/sites/nonexistent > domain.com 302 My