<?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>TheWebHostingBlog.NET &#187; .htaccess</title>
	<atom:link href="http://www.thewebhostingblog.net/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebhostingblog.net</link>
	<description>A Web Hosting Guide For Newbies</description>
	<lastBuildDate>Sat, 20 Mar 2010 12:33:45 +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>More .htaccess Codes for Additional Domains</title>
		<link>http://www.thewebhostingblog.net/2007/08/11/more-htaccess-codes-for-additional-domains/</link>
		<comments>http://www.thewebhostingblog.net/2007/08/11/more-htaccess-codes-for-additional-domains/#comments</comments>
		<pubDate>Sun, 12 Aug 2007 02:09:08 +0000</pubDate>
		<dc:creator>bigBert</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[PowWeb Hosting]]></category>
		<category><![CDATA[Web Hosting Blog]]></category>
		<category><![CDATA[Web Hosting Guides]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://www.thewebhostingblog.net/2007/08/11/more-htaccess-codes-for-additional-domains/</guid>
		<description><![CDATA[Browsing thru PowWeb forum really teaches me a lot. I&#8217;ve discovered that there are different htaccess codes for redirecting multiple domain names. Aside from the one I&#8217;ve posted long time ago, here are more complex sample codes posted on the forum that will surely work with any PowWeb website:
Sample 1:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain_name\.?tld [...]]]></description>
			<content:encoded><![CDATA[<p>Browsing thru <a href="http://thewebhostingblog.net/powweb-links/index.html#PowWeb-Forum" target="_blank">PowWeb forum</a> really teaches me a lot. I&#8217;ve discovered that there are different htaccess codes for redirecting multiple domain names. Aside from the one I&#8217;ve posted long time ago, here are more complex sample codes posted on the forum that will surely work with any PowWeb website:</p>
<p>Sample 1:</p>
<p><code>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^domain_name\.?tld [NC,OR]<br />
RewriteCond %{HTTP_HOST} ^www.domain_name\.?tld [NC]<br />
RewriteCond %{REQUEST_URI} !/subfolder/<br />
RewriteRule ^(.*)$ subfolder/$1 [L]</code></p>
<p>Sample 2:</p>
<p><code>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC]<br />
RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]<br />
RewriteCond %{HTTP_HOST} ^domain_name\.?tld [NC,OR]<br />
RewriteCond %{HTTP_HOST} ^www.domain_name\.?tld [NC]<br />
RewriteCond %{REQUEST_URI} !/subfolder/<br />
RewriteRule ^(.*)$ subfolder/$1 [L]</code></p>
<p>Sample 3:</p>
<p><code>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteRule ^([^\.]+[^/])$ http://%{HTTP_HOST}/$1/ [R=301,L]<br />
RewriteCond %{HTTP_HOST} ^(www\.)?domain_name\.tld$<br />
RewriteCond %{REQUEST_URI} !^/subfolder/<br />
RewriteRule ^(.*)$ subfolder/$1 [L]</code></p>
<p>These codes seems to be confusing to me, although it resembles the one that I previously use. Aside from this, PowWeb users can also use the <a href="http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-powwebs-map-to-subdirectory-tool/">Map to Subdirectory Tool</a> for creating multiple websites on the PowWeb server.</p>
<p><strong>Related Articles</strong><br />
<a href="http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-htaccess/" >Adding A Second Website Using .htaccess</a><br />
<a href="http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-powwebs-map-to-subdirectory-tool/" >Adding A Second Website Using PowWeb’s ‘Map to Subdirectory Tool’</a></p>
<p><strong>Useful Links</strong><br />
<a href="http://www.thewebhostingblog.net/powweb/PowWeb-Home" target="_blank">The PowWeb Home Page</a></p>
<p><strong>PowWeb Forum Links</strong><br />
<a href="http://forums.powweb.com/showthread.php?t=72128" target="_blank">.htaccess code examples for an add&#8217;l domain</a><br />
<a href="http://forum.powweb.com/showthread.php?t=68260" target="_blank">Installing a second domain</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thewebhostingblog.net/2007/08/11/more-htaccess-codes-for-additional-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding A Second Website Using .htaccess</title>
		<link>http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-htaccess/</link>
		<comments>http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-htaccess/#comments</comments>
		<pubDate>Wed, 09 May 2007 02:43:10 +0000</pubDate>
		<dc:creator>bigBert</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[PowWeb Hosting]]></category>
		<category><![CDATA[Web Hosting Blog]]></category>
		<category><![CDATA[Web Hosting Guides]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://www.thewebhostingblog.net/2007/05/08/htaccess-tutorial-article1/</guid>
		<description><![CDATA[I just added my second domain to my PowWeb account and one thing I discovered is that my second domain is just showing my first web site&#8217;s contents. Meaning every domain that I have on my account will redirect to my first domain. Hence, I needed a .htaccess code to assign my second domain to [...]]]></description>
			<content:encoded><![CDATA[<p>I just added my second domain to my PowWeb account and one thing I discovered is that my second domain is just showing my first web site&#8217;s contents. Meaning every domain that I have on my account will redirect to my first domain. Hence, I needed a .htaccess code to assign my second domain to a subfolder on my &#8216;htdocs&#8217; directory. I searched the <a href="http://thewebhostingblog.net/powweb-links/#Forum-Login" target="_blank" >PowWeb Forums</a> and found useful information there.</p>
<p>I&#8217;ve written a .htaccess code, as advised on the forum, and saved it as &#8216;.htaccess&#8217; on my home/htdocs/ directory. I needed an FTP program to upload this file because <a href="http://thewebhostingblog.net/powweb-links/#OPS-Login" target="_blank">OPS</a>&#8216; Filemanager does not support such type of filename.</p>
<p>My htaccess resembles the following piece of code:</p>
<p><code>RewriteEngine On<br />
Options +FollowSymLinks</p>
<p>RewriteCond %{HTTP_HOST} second-domain-name.com<br />
RewriteCond %{REQUEST_URI} !secondwebsite/<br />
RewriteRule ^(.*)$ secondwebsite/$1 [L]<br />
</code></p>
<p>Codes are case sensitive otherwise the second website will give you an &#8220;Internal Server Error&#8221; message when the domain is loaded.</p>
<p><strong>Related Articles</strong><br />
<a href="http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-powwebs-map-to-subdirectory-tool/" >Adding A Second Website Using PowWeb’s ‘Map to Subdirectory Tool’</a></p>
<p><strong>Useful Links</strong><br />
<a href="http://thewebhostingblog.net/powweb-links/#OPS-Login" target="_blank">PowWeb OPS: Login Page</a></p>
<p><strong>PowWeb Forum Links</strong><br />
<a href="http://forum.powweb.com/showthread.php?t=68260" target="_blank">Installing a second domain</a><br />
<a href="http://forum.powweb.com/showthread.php?t=72128" target="_blank">.htaccess code examples for an add&#8217;l domain</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thewebhostingblog.net/2007/05/08/adding-a-second-website-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

