Jump to content

Content based on domain


clay1

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/191663-content-based-on-domain/
Share on other sites

  • 3 weeks later...

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.?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.