CodeIgniter Forums
How to manage different and shared contents ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to manage different and shared contents ? (/showthread.php?tid=22964)



How to manage different and shared contents ? - El Forum - 09-25-2009

[eluser]Berik[/eluser]
Hi there,

I have to work on a french website that covers 4 different departments (department would translate to "state" in the USA). The particularity of the site is having some pages identical to the 4 departments and others that have different contents based on the locations.

Ideally I'd like to set it up with virtual subdomains :

www.example.com -> root where users select their department
dep1.example.com -> 1st department
dep2.example.com -> 2nd department
dep3.example.com -> 3rd department
dep4.example.com -> 4th department

I believe this can be done with htaccess, would that be true ?

next up :
each homepage is slightly different contents-wise but the about page is the same for all 4.

How would you do this ?
I'm thinking of using custom routes and using the backrefences to conditionaly load the corresponding view but am not sure if that would be the best way.

Thanks for you help Smile


How to manage different and shared contents ? - El Forum - 09-26-2009

[eluser]Berik[/eluser]
Still looking for feedback Smile


How to manage different and shared contents ? - El Forum - 09-28-2009

[eluser]Berik[/eluser]
Commenting on my own post Smile

It seems that SEO is more relevant when using sub folders rather than sub domains (well that's what I've found out while searching the question on the web anyway)... So I'll go the sub folder route instead.

Although I'm still curious about my initial question Smile