|
Well the way i would do this is to make a new dir format for the main sites. Ex:
home
-domain1.com
--members
-domain2.com
--members
-membersarea
Now with this you would have to link the members folder in each domain to the membersarea folder in your root. In both domains you would set it so htaccess get written to the membersarea folder, so when a user access's one members folder, he can access the second one with the same username/password, but if he doesn't close the session he should be able to move from one members area to another without relogging in. This is good if you want a centralized members area sharing the same content, but if you have 2 different members areas you want to share you would need to do something different.
In that case you would need to use some custom scripting on creating user group htpasswd files and using it with the different members areas. This would really take a long time and a lot of scripting would be needed. The easiest way for this type would be to have your scripts write either to both htpasswd files, or both domains write to the same one and share them for the members area, but then you would have to make sure that usernames are unique so they dont overwrite each other.
All depends on how much time you want to spend on something like this and if your server and current scripts can handle this type of change.
|