Another option would be to check the server port: if ( $_SERVER['SERVER_PORT'] != 443 ) { header("Location: https://$_SERVER['HTTP_HOST']{$PHP_SELF}"); } That will force redirection to port 443 if the user accesses via 80. Another solution is to check against http method, but I cannot remember the exact variable. Check out phpinfo(); and it should give you the list at the bottom. --Graham -----Original Message----- From: "P.M" <pmdanger@xxxxxxxxx> Subj: [users@httpd] PHP page only accessible via SSL Date: Wed Apr 5, 2006 8:18 am Size: 526 bytes To: Newsgroup Apache HTTP Server <users@xxxxxxxxxxxxxxxx> Hi, I would like to know how can i do if i want to force user to type https:// for a particular page. for example, i have a web page "admin.php" which should be ONLY accessible via SSL. if user types -->> http://admin.php, server should answer that this page does not exist. on the other hand, if user types -->> https://admin.php, so page is accessible and user can use this page. thanks a lot, Maileen --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx