i'm creating a index.php file for redirect all website to specific host I'd like create a little php script that read url and redirect based on specific filter.
for example: if url = (everything).domain1.com redir to default1.php if url = (everything).domain2.com redir to default2.php in all other case that not like first or second redir to default3.php
this is possible with php? i must use $_SERVER['HTTP_HOST'] or can I use other method?
.htaccess