/    Sign up×
Community /Pin to ProfileBookmark

Hi,

I have a site that is a course. It is becoming fairly successful. I’d like to sell the course to other organisations. What I would like to be able to do is change the branding of the site ( really this is just a header ) so that the organisations branding appeared rather than the default branding.

For instance, if the course is at course.com, I would like to be able to use an alternative address, perhaps a subdomain, for each organisation. When that address is used the branding is appropriate to the organisation.

So, what I thought was that I would set up sub-domains for each organisation. Like organisation.course.com. Then do some htacess cleverness. And probably set a session variable so that the branding was set dependent on that variable.

Does this make sense? Is there a better way of doing this? Can anyone give me some advice? Has anyone done anything similar?

The site is php based and I am happy programming in php.

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@savvykmsJun 22.2011 — You can use .var files in Apache mixed with .htaccess files to set environment variables accessible through PHP. I did this to provide different content based on language using PHP. Perhaps there is something you can do with that? A simple thing would be to check the refererer or other information about the URL using $_SERVER and $_ENV.
Copy linkTweet thisAlerts:
@niccolauthorJun 22.2011 — thanks savvykms

hadn't thought about .var so thanks for that.


the problem with using referrer is that the urls need to be distributed and I am not sure how bookmarking is going to work.


Thanks again
×

Success!

Help @niccol spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...