Welcome Guest, Not a member yet? Register   Sign In
.htaccess password protect for a specific domain
#2

[eluser]bretticus[/eluser]
Do...

www.mydomain.com
and
dev.mydomain.com

...point to the same directory and/or virtual host? If they do then you probably can't do this with an htaccess file (at least I know of no way to do a conditional that is a directive allowing host header matching.)

Instead, you could detect this in your application and generate the appropriate auth headers via code:

http://php.net/manual/en/features.http-auth.php


Messages In This Thread
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 06:10 PM
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 07:03 PM
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 07:15 PM
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 10:08 PM
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 10:09 PM
.htaccess password protect for a specific domain - by El Forum - 03-17-2010, 11:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB