Hi all,
I currently have a dev site where I host websites in development. I sometimes direct clients to the dev server to see the current status of their website. The problem is that the whole directory is password-protected with a single username and password - clients who are given that username and password could potentially see anyone else's website, if they typed in the URL. Not a massive problem admittedly, but still one I want to solve.
Of course it would be very easy to simply add a unique password to each directory when its added, but I'm interested in going one step beyond and launching a full CodeIgniter-based Dev Server interface (instead of .htaccess logins, which are ugly and boring). Upon navigating to the base url for the dev server, clients would be shown a legitimate login screen and, upon logging in, would be automatically redirected to the website associated with their logins.
Now, I know how to do all of that, that part is no big deal. But what I DON'T know how to do is install a WordPress site (many of my clients need WordPress builds) in a sub-directory of a CodeIgniter install, have that ENTIRE directory be password-protected by CodeIgniter (not just index.php, but all sub-directories and etc.), but NOT have CodeIgniter interfere with the WordPress installation. Is that even possible?
Just to reiterate, in case the above is a little ramble-y: dev.mysite.com would be controlled via CodeIgniter. dev.mysite.com/website would contain a WordPress site. dev.mysite.com/website and ALL subdirectories would be password-protected by CodeIgniter, and if someone tried to access ANY of them without first being logged in to the CodeIgniter installation, they would be redirected to dev.mysite.com to log in.
Is that actually possible? And if so, is it possible to do it on a semi-automated basis? Ideally, this will also include an administrative interface that allows me to create new site directories and upload directly to them, so ideally if I need to make changes to the .htaccess, it's the kind of changes that can be automated at least to some degree.
Thanks in advance for any answers or assistance!