<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Tag: https-for-wordpress</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: https-for-wordpress</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 12:22:42 +0000</pubDate>

<item>
<title>jeremysawesome on "[Plugin: HTTPS for WordPress] Incomplete checking of https"</title>
<link>http://wordpress.org/support/topic/264510#post-1245618</link>
<pubDate>Wed, 14 Oct 2009 00:43:47 +0000</pubDate>
<dc:creator>jeremysawesome</dc:creator>
<guid isPermaLink="false">1245618@http://wordpress.org/support/</guid>
<description>&#60;p&#62;how about this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function isSSL()
{
   if(!empty($_SERVER[&#38;#39;HTTPS&#38;#39;]){ return true; }
   else{ return false; }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I suppose if you really wanted to you could check the server port.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function isSSL()
{
   if(!empty($_SERVER[&#38;#39;HTTPS&#38;#39;])&#124;&#124;$_SERVER[&#38;#39;SERVER_PORT&#38;#39;]==443)
   { return true; }
   else{ return false; }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I always check if $_SERVER['HTTPS'] is not empty. The PHP Documentation says that $_SERVER['HTTPS'] is, &#34;Set to a non-empty value if the script was queried through the HTTPS protocol.&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>allanctan on "[Plugin: HTTPS for WordPress] Incomplete checking of https"</title>
<link>http://wordpress.org/support/topic/264510#post-1053773</link>
<pubDate>Thu, 23 Apr 2009 03:56:02 +0000</pubDate>
<dc:creator>allanctan</dc:creator>
<guid isPermaLink="false">1053773@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I believe the condition to check for https is incomplete.&#60;br /&#62;
Here's a more complete checking &#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
function isSSL(){&#60;/p&#62;
&#60;p&#62;  if($_SERVER['https'] == 1) /* Apache */ {&#60;br /&#62;
     return TRUE;&#60;br /&#62;
  } elseif ($_SERVER['https'] == 'on') /* IIS */ {&#60;br /&#62;
     return TRUE;&#60;br /&#62;
  } elseif ($_SERVER['SERVER_PORT'] == 443) /* others */ {&#60;br /&#62;
     return TRUE;&#60;br /&#62;
  } else {&#60;br /&#62;
  return FALSE; /* just using http */&#60;br /&#62;
  }&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Copied from&#60;br /&#62;
&#60;a href=&#34;http://www.php.net/manual/en/reserved.variables.server.php&#34; rel=&#34;nofollow&#34;&#62;http://www.php.net/manual/en/reserved.variables.server.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Allan&#60;br /&#62;
&#60;a href=&#34;http://www.ideyatech.com&#34; rel=&#34;nofollow&#34;&#62;http://www.ideyatech.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/https-for-wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/https-for-wordpress/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>illogic on "https-for-wordpress:  generalize a bit more?"</title>
<link>http://wordpress.org/support/topic/212892#post-887758</link>
<pubDate>Thu, 30 Oct 2008 18:10:53 +0000</pubDate>
<dc:creator>illogic</dc:creator>
<guid isPermaLink="false">887758@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Any chance on update for this to work with 2.6?
&#60;/p&#62;</description>
</item>
<item>
<title>zultron on "https-for-wordpress:  generalize a bit more?"</title>
<link>http://wordpress.org/support/topic/212892#post-884008</link>
<pubDate>Sat, 25 Oct 2008 16:50:04 +0000</pubDate>
<dc:creator>zultron</dc:creator>
<guid isPermaLink="false">884008@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi, GREAT idea for a plugin.  I've been wrestling with this for a couple of days now.&#60;/p&#62;
&#60;p&#62;I'd actually like something slightly different, as I wrote in another post.  I host several WP installs on a single IP as virtual hosts.  Something like this plugin could allow this sort of function so that admins can do their work through SSL:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.foo.com/blogs&#34; rel=&#34;nofollow&#34;&#62;http://www.foo.com/blogs&#60;/a&#62; = &#60;a href=&#34;https://www.admin.com/foo/blogs&#34; rel=&#34;nofollow&#34;&#62;https://www.admin.com/foo/blogs&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.bar.com/blogs&#34; rel=&#34;nofollow&#34;&#62;http://www.bar.com/blogs&#60;/a&#62; = &#60;a href=&#34;https://www.admin.com/bar/blogs&#34; rel=&#34;nofollow&#34;&#62;https://www.admin.com/bar/blogs&#60;/a&#62;&#60;br /&#62;
... and so on.&#60;/p&#62;
&#60;p&#62;But of course WordPress doesn't allow this.  Could https-for-wordpress be easily modified to do this?&#60;/p&#62;
&#60;p&#62;    John&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/https-for-wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/https-for-wordpress/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
