it allows you to use the domains parked on your hosting company by rederecting to a file or directory you specify a la virtualhost its uefull if you can only host one domain
name but have several parked under your account. in this example the code sends it to a main.html if the default host is used and sends it to thehostused.html otherwise