<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog - PonticStar.com &#187; Apache</title>
	<atom:link href="http://www.ponticstar.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ponticstar.com/blog</link>
	<description>Blog about various aspects of programming and web design</description>
	<lastBuildDate>Mon, 28 Jun 2010 19:53:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Force SSL using .htaccess and mod_rewrite</title>
		<link>http://www.ponticstar.com/blog/2009/11/21/force-ssl-using-htaccess/</link>
		<comments>http://www.ponticstar.com/blog/2009/11/21/force-ssl-using-htaccess/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 23:42:46 +0000</pubDate>
		<dc:creator>Michael Ryvkin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.ponticstar.com/blog/?p=107</guid>
		<description><![CDATA[Sometimes you need to force your visitors to use secure connection if they forgot to type https:// in the browser. It can be accomplished by adding the following lines to .htaccess file located in the root folder of your web site. It will force secure connection for all pages on your web site. .htaccess RewriteEngine [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to force your visitors to use secure connection if they forgot to type <code>https://</code> in the browser. It can be accomplished by adding the following lines to <code>.htaccess</code> file located in the root folder of your web site. It will force secure connection for all pages on your web site.</p>
<p><span id="more-107"></span>
<div class="filename">.htaccess</div>
<pre>RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</pre>
<p>If you want to force secure connection only in certain directory (for example <code>/secure</code>), use this code instead.</p>
<div class="filename">.htaccess</div>
<pre>RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^secure
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ponticstar.com/blog/2009/11/21/force-ssl-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
