<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: https code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 07 Sep 2008 03:44:57 GMT</pubDate>
    <description>DZone Snippets: https code</description>
    <item>
      <title>Make sure your site (or directory) is SSL encrypted</title>
      <link>http://snippets.dzone.com/posts/show/4405</link>
      <description>Need a simple way to make sure all http requests get redirected to https?&lt;br /&gt;This apache config snippet will redirect all requests at or below the specified location to its https equivilant.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;Location "/"&gt;&lt;br /&gt;        RewriteEngine on&lt;br /&gt;        Options +FollowSymLinks&lt;br /&gt;        Allow from all&lt;br /&gt;        RewriteCond %{SERVER_PORT} !^443$&lt;br /&gt;        RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]&lt;br /&gt;&lt;/Location&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 09 Aug 2007 17:52:54 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4405</guid>
      <author>mikehale (Michael Hale)</author>
    </item>
  </channel>
</rss>
