ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
Web Developer, IT Assistant, Graphics design, App Developer
3 companies, 3 domains, 3 templates, 1 website
Posted 13 years 8 months ago
Hi Guys.
I work for a holding company which owns 2 subsidiary companies below it.
They needed an intranet but it had to be on the internet so that we can access the website from offices all over the UK.
I used an RT template and set up 3 different styles to represent the colours and logos for the 3 companies.
I wanted 1 Joomla install so that we dont have to repeat every new article 3 times, add each user 3 times etc...
Then i set the domain names to redirect to the website with the relevant style attribute within the URL.
e.g
site1.com -> 72.29.228.88/~intranet/index.php?style=site1
site2.com -> 72.29.228.88/~intranet/index.php?style=site2
site3.com -> 72.29.228.88/~intranet/index.php?style=site3
And i only allow selected IP addresses to view the site using .htaccess.
This works great but unfortunately the url's look very messy with them being IP's and i wanted something more professional.
I have looked into 'Virtual Domains' and 'Multi Sites' but im still not 100% sure which extension i need to use or if i can use something with the current setup i have.
depending on the intranet the user is on, also makes the content change a little.
I used a custom PHP module in order to change certain content which picks up the URL attribute in order to display the correct notice or text (for things like 'about us') but again its not pretty in the backend and is certainly not something i can get marketing personnel to update.
So... any advice on the best way to achieve the results i need? Also is using .htaccess to deny all ip's except specific ones safe?
Adamck, I know you're a smart guy so you probably have a reason you don't do it this way already but, here's what I have set up.
I have several sites with their own Joomla template and style but a single billing system through WHMCS that all clients log in to. They update acct info, pay bills, and stuff like that. The "login" area is a wrapper that contains the external billing website with matching styles for whichever site refers to it.
Could you frame in the RT template using a wrapper? That would give you a site1, site2, or site3 TLD address wrapped around the appropriate style of your RT template.
B
e courteous to staff and members that volunteer their time helping you E
ssential Tool - FireBug N
ever assume I know what version you're talking about
S
earch the forum for a solution first I
nclude a link to the problem M
ark your resolved issues as [SOLVED] O
nly PM moderators if they request it first N
o...
Hi Ben,
I need all the sites to have the same content, the same modules and the same user accounts.
So using a wrapper would be a pain in the arse to set up!
I would need maybe 1 master database with 3 templates connected to it.
Their are extensions that appear to do what i want but im yet to try them out and the info about them is very vague!
Ok, how about this. Three domains, site1, site2, site3. Each domain is made of a single wrapper that just loads your main site. Nothing complicated about that. Create 3 user groups that have access only to their custom layout of the main site. Everyone shares the same modules, database, and user accounts. You could make three different ("main") menus, three different home pages, three sets of style sheets, etc. that all load based on their user group access. Catch is everyone has to login first so they can be identified.
B
e courteous to staff and members that volunteer their time helping you E
ssential Tool - FireBug N
ever assume I know what version you're talking about
S
earch the forum for a solution first I
nclude a link to the problem M
ark your resolved issues as [SOLVED] O
nly PM moderators if they request it first N
o...
Sounds very complicated!
At the moment i have the same template with 3 styles and point them to each style.
the menus can be the same as they share alot of the same stuff, except the right hand side menu which is one i made myself with php that checks what cookie style is set and then shown a menu depending on what style they have set in the cookie
Works well, but i dont want to stick with it if i can use an easier system/extension.
I was mainly after more info about extensions rather than a bodge/workaround.