clay1 Posted February 10, 2010 Share Posted February 10, 2010 I am working on a project that involves currently 8 different domain names that reference a city. They are all hosted on the same shared hosting server. The content for the sites will be essentially the same except for localization based upon the url. The content of the site will be an events listing and registration page for events in a particular city. The template will be the same for each one but with some localized graphics such as a header. Eventually there will be 30+ domains/cities. I am wondering what the best way to approach this is? Quote Link to comment https://forums.phpfreaks.com/topic/191663-content-based-on-domain/ Share on other sites More sharing options...
-twenty Posted March 1, 2010 Share Posted March 1, 2010 Are you referring to something similar to how Kijiji creates sub domains for certain cities? ie: http://toronto.kijiji.ca http://vancouver.kijii.ca Pointing them to the same location, but the output of the page is based upon the dns suffix currently being used? Ie: Toronto returns results from the Toronto database, etc.? Quote Link to comment https://forums.phpfreaks.com/topic/191663-content-based-on-domain/#findComment-1020018 Share on other sites More sharing options...
ignace Posted March 2, 2010 Share Posted March 2, 2010 That ain't to hard just use HTTP_HOST Quote Link to comment https://forums.phpfreaks.com/topic/191663-content-based-on-domain/#findComment-1020507 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.