<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Force_HTTPS_for_entire_website_via_htaccess</id>
		<title>Force HTTPS for entire website via htaccess - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Force_HTTPS_for_entire_website_via_htaccess"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Force_HTTPS_for_entire_website_via_htaccess&amp;action=history"/>
		<updated>2026-06-04T06:19:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Force_HTTPS_for_entire_website_via_htaccess&amp;diff=878&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;===Force HTTPS for Entire Website via htaccess===  With the most recent race to securing the web by google, we are seeing more and more people wanting to force their site to b...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Force_HTTPS_for_entire_website_via_htaccess&amp;diff=878&amp;oldid=prev"/>
				<updated>2016-02-19T14:11:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Force HTTPS for Entire Website via htaccess===  With the most recent race to securing the web by google, we are seeing more and more people wanting to force their site to b...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Force HTTPS for Entire Website via htaccess===&lt;br /&gt;
&lt;br /&gt;
With the most recent race to securing the web by google, we are seeing more and more people wanting to force their site to be served for https/443.&lt;br /&gt;
&lt;br /&gt;
You can do this in your htaccess or vhost file by adding the following.&lt;br /&gt;
&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteCond %{SERVER_PORT} !^443$&lt;br /&gt;
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]&lt;br /&gt;
&lt;br /&gt;
With the above example it does not matter the url as it will redirect all requests to https://&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>