rjwmotor

msg:4331878 | 1:35 am on Jun 28, 2011 (gmt 0) |
Actually found this on another site finally. It took me a while to find it so I'm posting my solution in case other people are having the same problem. Maybe I'm just slow.... when I want external http content to disappear on https pages I enclose the external content like this: PHP Code: <?php if (!$_SERVER['HTTPS']){ ?> <!-- external content here --> <?php } ?> I use this code to display social bookmarking widgets only on http pages and not on https pages. |
| This works to get rid of the error by removing the button on secure pages completely.
|
rjwmotor

msg:4331879 | 1:36 am on Jun 28, 2011 (gmt 0) |
Obviously only works on PHP pages though....
|
SevenCubed

msg:4331883 | 2:24 am on Jun 28, 2011 (gmt 0) |
Well to add to your solution, it'll work on any page including vanilla .htm or .html by simply adding this line to the beginning of an .htaccess file or in the apache .conf file: AddType application/x-httpd-php .htm .html That tells Apache to parse for PHP scripting within documents with that file extension.
|
|