<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Force redirect to SSL secure page</title>
	<atom:link href="http://www.mac-lab.com/2008/09/force-redirect-to-ssl-secure-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mac-lab.com/2008/09/force-redirect-to-ssl-secure-page/</link>
	<description>Another Mac OS X Fanatic</description>
	<lastBuildDate>Fri, 13 Jan 2012 21:41:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Barry Bourland</title>
		<link>http://www.mac-lab.com/2008/09/force-redirect-to-ssl-secure-page/comment-page-1/#comment-20</link>
		<dc:creator>Barry Bourland</dc:creator>
		<pubDate>Sun, 14 Dec 2008 02:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-lab.com/?p=103#comment-20</guid>
		<description>Hi Preston  --

You would need to add this PHP code snippet to the top of the .php page you are working with.  It doesn&#039;t have to do with Terminal.  Just add it to the top of your xyz.php page.

&lt;?php

// force redirect to SSL secure page

if($_SERVER[&#039;SERVER_PORT&#039;] != &#039;443&#039;) { header(&#039;Location: https://&#039;.$_SERVER[&#039;HTTP_HOST&#039;].$_SERVER[&#039;REQUEST_URI&#039;]); exit(); }

?&gt;</description>
		<content:encoded><![CDATA[<p>Hi Preston  &#8211;</p>
<p>You would need to add this PHP code snippet to the top of the .php page you are working with.  It doesn&#8217;t have to do with Terminal.  Just add it to the top of your xyz.php page.</p>
<p>< ?php</p>
<p>// force redirect to SSL secure page</p>
<p>if($_SERVER['SERVER_PORT'] != '443') { header('Location: <a href="https://&#039;.$_SERVER&#039;HTTP_HOST&#039;.$_SERVER&#039;REQUEST_URI&#039;" rel="nofollow">https://&#039;.$_SERVER&#039;HTTP_HOST&#039;.$_SERVER&#039;REQUEST_URI&#039;); exit(); }</p>
<p>?></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preston Lanier</title>
		<link>http://www.mac-lab.com/2008/09/force-redirect-to-ssl-secure-page/comment-page-1/#comment-19</link>
		<dc:creator>Preston Lanier</dc:creator>
		<pubDate>Sun, 14 Dec 2008 01:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-lab.com/?p=103#comment-19</guid>
		<description>Sorry, I am a new to Terminal.  Can you tell me which file this is?  I am trying to force http to https redirect on Leopard Server and I have yet to find out which file it is.  Any help would be very much appreciated.  Thanks!</description>
		<content:encoded><![CDATA[<p>Sorry, I am a new to Terminal.  Can you tell me which file this is?  I am trying to force http to https redirect on Leopard Server and I have yet to find out which file it is.  Any help would be very much appreciated.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

