Forum Moderators: phranque
I have a site admin directory that I am password protecting with an htaccess file and my host has wildcard dns enabled in apache. I am using a php script to customize the content that is used to provide dynamic content based on the subdomain. Like this:
sub1.site.com/admin/index.php is admin for sub1
sub2.site.com/admin/index.php is admin for sub2
and so on.
What I am finding is that each subdirectory has to validate for the htaccess file. I would rather be able to have a single login for the admin directory that would allow me to admin each of the subdomains without having to relogin. Any suggestions? Do I need to rewrite? If I do, will the original domain be accessable to my php script?
Welcome to WebmasterWorld [webmasterworld.com]!
The key to this is to find out where your subdomains are "mapped" to server file subdirectories. The "fix" must be applied there, in order to put your admin section into the same authorization realm regardless of subdomain.
Jim
This is why it is a little baffling to me. When I am accessing sub1.site.com/admin/index.html it is the exact same file that I am accessing with sub2.site.com/admin/index.html.
In the authorization popup box the only difference is in the site name.
Jim