
03-05-06, 05:15 PM
|
|
New Member
|
|
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
PHP Login Script for Multi Domain
Dear All
I'm new to the forum and a newbie in general. I have five domain names in single package shared hosting and cPanel only my access. The other four domain will be parked via cPanel. My problem is I wanna protect my main page using .htpasswd so that only privilleg user can viewing my site.
Lets say my all domain are :
www.php.com
www.asp.com
www.htm.com
www.css.com
www.jsp.com
But its only for one domain (first domain/www.php.com) NOT for 2nd, 3rd, 4th and 5th domain. So when a visitor open www.php.com then he/she will prompting a username/password box and if correct he/she will be redirected to the site (php.com) But when visitor open my other four domains, the password box will not appear and the visitor can viewing my site using each domain name !
I've tried that using .htpasswd but still can't work, so i think its can be done using php login script (without sql), but I dont know how to make it (I'm sorry)
So please give me help or advice, thanks alot
|