Ok this might be weird but i’ll explain this as easily as I can.
I’m starting a free-forum hosting service which eventually will provide multiple different forum systems (phpbb, smf etc) and I have the following setup:
domain.com points to main site with signup etc.
Upon registration, users will get a subdomain.domain.com
All sub-domains are CName’d to point to a sub-domain I have called s1.domain.com which on my apache settings points to domain.com/forums/
In this forums folder I plan to have a config file which will work out which forum system that particular sub-domain should be using, and as such change said working directory to match the forum type.
To start with I’m using phpbb so the phpbb files are located in domain.com/forums/phpbb so say I have
phpbb.domain.com points to domain.com/forums which the file would determine from my database it needs to show the phpbb files.
I guess the question is, without redirecting, how would I set it to show the phpbb files since include would make things messy code-wise. I’m guessing this would be a change working directory within the file somehow.
Any ideas?