two url pointing to same apache dir. How to allow only one to work?

I'm hosting company customer. they provide me with basic domain to my account http://me.company.com/ and I have my own domain http://domain.com pointing to same apache directory (vhost)

But I want to allow acces only from by http://domain.com (based on http headers?).

I can create .htacces files in this dirs. Is there any directive for htacces to disallow acces from that virtual host? or any other way to do this?

I want to resolve it without interaction with my hosting company, co please dont tell me to do so.

also please dont ask me why I dont want my site to be accessible by 2 url's

 

 

 

 

Top