1

Is it possible to make with .htaccess a 404 with a sub-domain.

I am making a host that you can get a sub-domain like:

example.example.com

But, I would like to show a 404 page if a sub-domain does not exist.

doesnotexist.example.com

Is this possible with .htaccess?

Thanks!

arodebaugh
  • 538
  • 1
  • 8
  • 26
  • How do your subdomains work? are they subfolders in the root directory of the main domain or do they have their own structure? – Panama Jack Dec 22 '15 at 18:58
  • subfolders in the root directory of the main domain – arodebaugh Dec 22 '15 at 18:59
  • Here's a solution albeit a bit tricky should solve your issue using `virtualdocument root.` http://stackoverflow.com/questions/28627286/virtualdocumentroot-handling-non-existent-folders – Panama Jack Dec 22 '15 at 19:17

0 Answers0