<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Justin Korn [dot] com &#187; DomainsMadeEasy</title>
	<atom:link href="http://blog.justinkorn.com/tag/domainsmadeeasy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justinkorn.com</link>
	<description>A little place for me to share, dream, and (gulp) inspire</description>
	<lastBuildDate>Wed, 01 Sep 2010 22:27:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://blog.justinkorn.com</link>
  <url>http://blog.justinkorn.com/logo_fav.png</url>
  <title>Justin Korn [dot] com</title>
</image>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>WordPress and Shared SSL</title>
		<link>http://blog.justinkorn.com/2010/03/wordpress-and-shared-ssl/</link>
		<comments>http://blog.justinkorn.com/2010/03/wordpress-and-shared-ssl/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:57:54 +0000</pubDate>
		<dc:creator>Justin Korn</dc:creator>
				<category><![CDATA[How Tos & Know Hows]]></category>
		<category><![CDATA[BlueHost]]></category>
		<category><![CDATA[DomainsMadeEasy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shared SSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.justinkorn.com/?p=498</guid>
		<description><![CDATA[Over the weekend, I decided to move my website, once again, to BlueHost.  DomainsMadeEasy just wasn&#8217;t cutting it.  I constantly received &#8220;down&#8221; messages and when I called support, they dismissed me and refused to live up to their 99.9% SLA.
Upon migrating over, I wanted to be sure to take advantage of the shared [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend, I decided to move my website, once again, to <a id="aptureLink_2HIPduLCIU" href="http://www.bluehost.com/track/justinkorn">BlueHost</a>.  DomainsMadeEasy just wasn&#8217;t cutting it.  I constantly received &#8220;down&#8221; messages and when I called support, they dismissed me and refused to live up to their 99.9% SLA.</p>
<p>Upon migrating over, I wanted to be sure to take advantage of the shared SSL BlueHost provides in order to keep my WordPress login and admin area more secure.  Little did I know, it was a bit more daunting to figure out then I expected it to be.  Since it took me nearly 2 days to figure out the solution, I wanted to share it the &#8220;interwebs.&#8221;</p>
<p>First of all, the <em>Admin SSL</em> plugin that pops-up everywhere on Google when searching for using WordPress with shared SSL doesn&#8217;t work and the author seems to have stopped supporting the shared SSL functionality of it.  So, that was a bust.</p>
<p>So, after playing around a bit, I added the following to my wp-config file, replacing USERNAME with my BlueHost user name and BLOG_DIRECTORY with the path to where I installed WordPress (note: this is specific to BlueHost):</p>
<p><code>define('WP_SITEURL', 'https://secure.bluehost.com/~USERNANAME/BLOG_DIRECTORY');</code></p>
<p>From there, I needed to insure my &#8216;wp-content&#8217; folder stayed intact, so I also added the following to the wp-config file (this can be altered in the &#8220;Miscellaneous Settings&#8221; section as well):</p>
<p><code>define('WP_CONTENT_URL', 'http://blog.justinkorn.com/wp-content');</code></p>
<p>These two changes seemed to make everything work properly.  When I attempt to login via wp-login.php, I am redirected to the shared SSL url and when I upload new content, everything goes to the proper place with in the wp-content directory.</p>
<p>The only caveat that I have seen so far is after clicking around within the admin area a few times, I receive the following message:</p>
<p><em>Too many requests received. Please wait a few minutes and try again.</em></p>
<p>Eventually the message goes away and I&#8217;m able to work again, so it&#8217;s not the end of the world, but it is a bit annoying.  </p>
<p>In the end, however, I have a secure WordPress Admin area and I&#8217;m not shelling out the $30/yr for the dedicated IP or however much it is for the private SSL certificate.  Hopefully this setup will prove to last; only time will tell.</p>
<p>Till next time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinkorn.com/2010/03/wordpress-and-shared-ssl/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
	</item>
		<item>
		<title>Custom 404 Page on Windows Shared Hosting</title>
		<link>http://blog.justinkorn.com/2009/12/custom-404-page-on-windows-shared-hosting/</link>
		<comments>http://blog.justinkorn.com/2009/12/custom-404-page-on-windows-shared-hosting/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 06:11:50 +0000</pubDate>
		<dc:creator>Justin Korn</dc:creator>
				<category><![CDATA[How Tos & Know Hows]]></category>
		<category><![CDATA[404 Page]]></category>
		<category><![CDATA[Custom 404 Page]]></category>
		<category><![CDATA[DomainsMadeEasy]]></category>
		<category><![CDATA[Error Page]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Shared Web Hosting]]></category>
		<category><![CDATA[Windows Shared Hosting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.justinkorn.com/?p=435</guid>
		<description><![CDATA[I recently had to setup a new WordPress blog for work and when it came time to setting up the 404 page, I had the hardest time finding answers for what I was trying to do. So, I thought I would post my solution so it&#8217;s out there and ideally save someone hours of wasted [...]]]></description>
			<content:encoded><![CDATA[<p><a title="A.viary.com 404 Page by @MSG on Flickr" href="http://www.flickr.com/photos/michaelsgalpert/1731968270/" target="_blank"><img class="size-full wp-image-437 alignleft" title="A.viary.com 404 Page by @MSG on Flickr" src="http://blog.justinkorn.com/wp-content/uploads/1731968270_b05e2f1bd4_m.jpg" alt="A.viary.com 404 Page by @MSG on Flickr" width="240" height="185" /></a>I recently had to setup a new WordPress blog for work and when it came time to setting up the 404 page, I had the hardest time finding answers for what I was trying to do. So, I thought I would post my solution so it&#8217;s out there and ideally save someone hours of wasted time.</p>
<h3>The Situation</h3>
<p>I am hosting my companies new blog with <a title="DomainsMadeEasy.com" href="http://www.domainsmadeeasy.com" target="_blank">DomainsMadeEasy</a> (identical to <a title="GoDaddy.com" href="http://www.godaddy.com" target="_blank">GoDaddy</a> &#8212; I have not investigated if the two companies are related, but at first site, you&#8217;d assume they are since all of the tools used for domain registration, management, hosting, etc. are identical) on a Windows server (need it for some ASP.NET development we are doing).</p>
<p>In any case, I am hosting www.mydomain.com and the WordPress blog is using the subdomain, blog.mydomain.com.  After everything was setup and ready to go, I wanted to ensure the 404 page setup within WordPress was working properly.  So, I typed in a bogus address, http://blog.mydomain.com/dsifsdf, to see what I got.  Sure enough, I received the ugly default 404 page.  In other words, WordPress wasn&#8217;t picking up the 404.</p>
<p>Since DomainsMadeEasy does not delegate the &#8220;Error Handler&#8221; setting on Windows servers, I was unable to work with the web.config file and as I mentioned earlier, moving to Linux to use the .htaccess file was not an option.  After hours of searching, a few calls to support and being told it is &#8220;impossible,&#8221; I finally took a break.  When I returned to the issue, the answer dawned on me&#8230;</p>
<h3>The Solution</h3>
<p><a title="404 Error Pages by Dave Delaney on Flickr" href="http://www.flickr.com/photos/davemadethis/3417109823/" target="_blank"><img class="size-thumbnail wp-image-436 alignright" style="border: 1px solid black; margin: 5px; padding: 0;" title="404 Error Pages by Dave Delaney on Flickr" src="http://blog.justinkorn.com/wp-content/uploads/3417109823_674a95facd_m-150x150.jpg" alt="404 Error Pages by Dave Delaney on Flickr" width="240" height="182" /></a>In short, it kind of IS impossible to use custom 404 pages for each subdomain and therefore need to trick the server.  You can only have one 404 page under the main domain.  This also means, if you have an account that allows hosting multiple domains, whatever domain you setup as the primary will be forced to host the 404 page.  Example:  mydomain.com is the primary, but I&#8217;m also hosting thisdomain.com under the same account.  If a 404 is served for thisdomain.com, the 404 page for mydomain.com will actually be served&#8230;not cool.</p>
<p>Well, the answer ended up being quite simple, though, not perfect).  With a little PHP coding, you can create a 404 page that actually redirects to the 404 page of the domain you wish.</p>
<p>First, you need to setup your custom 404 pages for each domain and subdomain you want a custom 404 page for.  If you are using WordPress, you can setup a new page from your admin tools to serve this purpose.  Note: with the below solution, WordPress will not know this is a 404 error coming through.</p>
<p>Next, you need to create a 404.php page to use under the primary domain.  This page will filter the incoming request and forward it on to the appropriate custom 404 page you just setup.  My PHP code within this page, looks something like&#8230;<br />
<code><br />
$ref = $_SERVER['SERVER_NAME'];<br />
if(strpos($ref, "otherdomain.com"))<br />
{<br />
header( 'Location: http://otherdomain.com/errorpage' ) ;<br />
}<br />
elseif(strpos($ref, "blog.mydomain.com"))<br />
{<br />
header( 'Location: http://blog.mydomain.com/errorpage' ) ;<br />
}<br />
else<br />
{<br />
header( 'Location: http://www.mydomain.com/error/' ) ;<br />
}<br />
</code></p>
<p>After your 404.php page is set, upload it to your host.  I put mine right in the root of mydomain.com.  Once your 404.php page is uploaded and in place, login to your hosting account.  Once logged in, navigate to the 404 page settings.  For GoDaddy and DomainsMadeEasy, this is under Settings, 404 Error Behavior.  From there, select the &#8220;Use custom page&#8221; option.  Set the option to point to your 404.php file:  http://www.mydomain.com/404.php (note, the http://www.mydomain.com/ part of the entry can not be altered.  You should only be typing 404.php into the text box, unless you placed the 404.php file into a subfolder).   Once you think the setting looks correct, click on &#8220;Continue&#8221; and save your changes.</p>
<p>After 10 &#8211; 30 minutes, your settings should update and you should now have a custom 404 page for every domain you have hosted under your account.</p>
<p>That&#8217;s all there is to it.  I hope this helps someone out there.</p>
<p>Till next time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinkorn.com/2009/12/custom-404-page-on-windows-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://blog.justinkorn.com/wp-content/uploads/1731968270_b05e2f1bd4_m-150x150.jpg" />
		<media:content url="http://blog.justinkorn.com/wp-content/uploads/1731968270_b05e2f1bd4_m.jpg" medium="image">
			<media:title type="html">A.viary.com 404 Page by @MSG</media:title>
			<media:thumbnail url="http://blog.justinkorn.com/wp-content/uploads/1731968270_b05e2f1bd4_m-150x150.jpg" />
		</media:content>
		<media:content url="http://blog.justinkorn.com/wp-content/uploads/3417109823_674a95facd_m.jpg" medium="image">
			<media:title type="html">404 Error Pages by Dave Delaney</media:title>
			<media:thumbnail url="http://blog.justinkorn.com/wp-content/uploads/3417109823_674a95facd_m-150x150.jpg" />
		</media:content>
	</item>
	</channel>
</rss>
