I'm having a directory website with sub-pages for each city. Like for example Newyork will have an address www.directory.com/newyork, LA will have www.directory.com/la
so i want to point the the domain newyorkdirectory.com to www.directory.com/newyork and so for each sub sections... what are the options I have.. can I do this in my code? Is there any way to detect the domain from php and load the content accordingly?
If all i point all the domain's to the site can i detect the incoming domain and refer them to a page? I totally have no idea on this.
Clarification: when people goto the site through newyorkdirectory.com the page www.directory.com/newyork/malls should be accessed through newyorkdirectory.com/malls