Hey, I run a phpBB with a few private forums and would like to give my users an easy way to switch between SSL and HTTP. Here's some psuedo-code that will hopefully give you guys an idea of what I mean: [code]//IIRC, php should have an operator to return each part of the URL. create var "Link_to" create var "Address" if [Protocol] == "http://", var "Link_to" is assigned the value of "Secure" and var "Address" the value of "https://mysite.com/" else var "Link_to" is assigned the value of "Unsecure" and var "Address" the value of "http://mysite.com:2006" //link should read: <a href="{"Address"+"Current path"}">"Link_to"</a>[/code]