<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Volume4's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 04:39:07 GMT</pubDate>
    <description>DZone Snippets: Volume4's Code Snippets</description>
    <item>
      <title>Redirect all HTTP requests to HTTPS with ISAPI Rewrite</title>
      <link>http://snippets.dzone.com/posts/show/3866</link>
      <description>To redirect all HTTP requests to HTTPS with ISAPI Rewrite you can use the following rewriting rules in your httpd.ini file:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# redirect all http requests  to https&lt;br /&gt;RewriteCond  %HTTPS (?!on).*&lt;br /&gt;RewriteCond Host: (.*)&lt;br /&gt;RewriteRule (.*) https\://$1$2 [I,RP]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Thanks to &lt;a href="http://www.ivanuzunov.net/" title="Ivan Uzunov"&gt;Ivan Uzunov&lt;/a&gt;</description>
      <pubDate>Tue, 24 Apr 2007 08:25:44 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3866</guid>
      <author>volume4 (Schalk Neethling)</author>
    </item>
    <item>
      <title>Forward a page using PHP</title>
      <link>http://snippets.dzone.com/posts/show/3863</link>
      <description>Often, forwarding web pages is done with .htaccess. But sometimes you don't want to mess with editing .htaccess (or you may not have access to it). You can do HTML forwarding, but PHP allows you to use a more transparent method (and you'd like to retain referrer information). Just edit the code below and add it to the page in question.&lt;br /&gt;&lt;br /&gt;- Thank to Rollie Hawk&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;  header("Location: http://domain.tld/page.php");&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 23 Apr 2007 21:51:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3863</guid>
      <author>volume4 (Schalk Neethling)</author>
    </item>
  </channel>
</rss>
