I was told this would be better in this forums then the coding one!
Hi,
I was wondering, I will have a number of features on the website, News, Products, Resources, Forums, Mail etc, they will also have there own subdomain name that will piont to the app as if they click the link that was on the webpage.
now when they click on the enter the subdomain like news.yoursite.com thats what will stay in the address bar of there browser.
Now on top of this all of these feature have features that if they create account will have access to, so I have ONE log in sysem.
How would you handle this?
Would you have directories with the main dir (www) and inside this have your apps dir?
dev/www main dir
dev/www/mail/ mail module
dev/www/news/ news module
dev/www/forums/ forums module
dev/www/user-sys/ used for all things to do with log in, account create, account activation
dev/www/lib/ used for common files for all module
dev/www/css/ used for fundation of appearice of site
Would you have the directories on the same level as the main directory?
dev/www/ main dir
dev/mail/ mail module
dev/news/ news module
dev/forums/ forums module
dev/user-sys/ used for all things to do with log in, account create, account activation
dev/lib/ used for common files for all module
dev/css/ used for fundation of appearice of site
After the above questions, would you have the subdomain show the directory or hide the directory?
meaning mail.yoursite.com would display that way, or could be displayed like mail.yoursite.com/mail/?
now when I am developing stuff its in dev which is for developing only, its not for the public how can I design the site so when I am moving it over to the public side, it will work and I would not have to edit the files?
So any how I am having this setup today to have the subdomain of admin, I want to use the same log in system as the main site as users have access level based on codes assigned to there user_id, so if a person logs in and they are logging through the main site login screen then they are show that, but if there use admin.yoursite.com and have access to admin functions then they see that screen if not they are told they don't have access rights
so back to my question; what is the best way to setup the structor for being able to use subdomain?
Thanks for your advice!
Sincerely,
Christopher