php - Pointing domain to a page in my site -
i'm having directory website sub-pages each city. example newyork have address www.directory.com/newyork, la have www.directory.com/la
so want point the domain newyorkdirectory.com www.directory.com/newyork , each sub sections... options have.. can in code? there way detect domain php , load content accordingly?
if point domain's site can detect incoming domain , refer them page? totally have no idea on this.
clarification: when people goto site through newyorkdirectory.com page www.directory.com/newyork/malls should accessed through newyorkdirectory.com/malls
so want point the domain newyorkdirectory.com www.directory.com/newyork
you mean want existing "newyorkdirectory.com" links of website point "www.directory.com/newyork"? or want point "www.directory.com/newyork" when people try go "newyorkdirectory.com"?
second case impossible if not possess domain "newyorkdirectory.com", else can reroute using apache .htaccess think.
Comments
Post a Comment