I have an user A on a server, this users has a working set of scripts (html+js+css+everything else).
I also have users B-[as much as I want]. I want those to use the exact same files, but if they have the file themselves, use that. Like a multi-user file_exists()
on server level.
Say the user B has /templates/index.html
, I want the site to use all over User A's files, apart from that template (which is User B's). Much like an alias, until a file exists.
Could anyone point my in the right direction, I'm able to work on server level, I simply don't know the terms, I don't know what I'm looking for.
Example:
USER A USER B USER C
.htaccess
index.php
/templates/ /templates/ /templates/
- index.html
- header.html - header.html
- footer.html - footer.html
USER B uses all of USER A's files, apart from header.html
USER C uses all of USER A's files, apart from footer.html
An easy way to explain: User's B&C are an alias of A, apart from the few existing files. Pretty urls have to remain working.
file_exists()
? Or do you envisage a lower server-level solution?