<?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>solutions.hans-eric.com &#187; Hosting</title>
	<atom:link href="http://solutions.hans-eric.com/category/hosting/feed" rel="self" type="application/rss+xml" />
	<link>http://solutions.hans-eric.com</link>
	<description>Hans-Eric Grönlund's Log of Solutions to Technical Problems</description>
	<lastBuildDate>Fri, 23 Apr 2010 07:39:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Force a www Prefix</title>
		<link>http://solutions.hans-eric.com/force-a-www-prefix</link>
		<comments>http://solutions.hans-eric.com/force-a-www-prefix#comments</comments>
		<pubDate>Tue, 09 Jun 2009 09:07:21 +0000</pubDate>
		<dc:creator>Hans-Eric</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://solutions.hans-eric.com/?p=3</guid>
		<description><![CDATA[Problem:
You want to force the World Wide Web prefix of your domain name, even though a page was requested without it. For example, if you would like all requests to http://hans-eric.com be redirected to http://www.hans-eric.com
Solution:
Solution from Alister Cameron. It works for Linux/Unix and requires .htaccess file access.
In the web root directory .htaccess file, add the [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem:</h4>
<p>You want to force the World Wide Web prefix of your domain name, even though a page was requested without it. For example, if you would like all requests to http://hans-eric.com be redirected to http://www.hans-eric.com</p>
<h4>Solution:</h4>
<p>Solution from <a title="Two WordPress Plugins You Don't Need And Shouldn't Use" href="http://www.alistercameron.com/2007/01/12/two-wordpress-plugins-you-dont-need-and-shouldnt-use/">Alister Cameron</a>. It works for Linux/Unix and requires .htaccess file access.<br />
In the web root directory .htaccess file, add the following:</p>
<pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.alistercameron.com$ [NC]
RewriteRule ^(.*)$ http://www.alistercameron.com/$1 [R=301,L]RewriteCond %{REQUEST_URI} ^/[^.]+[^/]$

RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
&lt;/IfModule&gt;</pre>
<p>If you are using <a title="WordPress - The WebLog Engine" href="http://wordpress.org/">WordPress</a>, those rules should come before the standard WordPress rules.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.hans-eric.com/force-a-www-prefix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
