<?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>Wordpress Master &#187; Setting Up Wordpress</title>
	<atom:link href="http://www.wordpress-master.com/category/wordpress-basics/setting-up-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wordpress-master.com</link>
	<description>Teaching Wordpress to the World</description>
	<lastBuildDate>Sat, 19 Jun 2010 13:40:36 +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>htaccess Rules for Wordpress Permalinks</title>
		<link>http://www.wordpress-master.com/htaccess-rules-for-wordpress-permalinks.html</link>
		<comments>http://www.wordpress-master.com/htaccess-rules-for-wordpress-permalinks.html#comments</comments>
		<pubDate>Wed, 24 Feb 2010 21:03:59 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress Blogging]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[blogging help]]></category>
		<category><![CDATA[Hosting Company]]></category>
		<category><![CDATA[Htaccess File]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Rewritecond]]></category>
		<category><![CDATA[Rewriterule]]></category>
		<category><![CDATA[wordpress help]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=537</guid>
		<description><![CDATA[I recently moved a website for a client from one hosting company to another hosting company.  The entire blog was broken though.  Every time I clicked a link or tried to visit a post it resulted in a "Page not Found".  From looking at the URL, it was obvious that it was using Permalinks. Since the site was failing to display these pages using permalinks, the problem was . . .]]></description>
			<content:encoded><![CDATA[<p></p><p>I recently moved a website for a client from one hosting company to another hosting company.  The entire blog was broken though.  Every time I clicked a link or tried to visit a post it resulted in a &#8220;Page not Found&#8221;.  From looking at the URL, it was obvious that it was using Permalinks.</p>
<p>Since the site was failing to display these pages using permalinks, the problem was with the .htaccess file.  Sure enough I opened it up and the .htaccess file was empty.  So while the most common problem is the the <a href="http://www.wordpress-master.com/moving-wordpress-site-hidden-files.html">htaccess file is forgotten</a> and not moved, in this case on the previous host it just didn&#8217;t exist.</p>
<p>Unfortunately, I didn&#8217;t have access to the clients Wordpress Admin so I couldn&#8217;t regenerate the htaccess file.  Instead I had to go look for it on another Wordpress installation.</p>
<p>For those of you that might not have access to easily look this up (and for my own reference later), here is what the .htaccess file should look like (2 versions):</p>
<p>Version 1: (root installation)<br />
<code># BEGIN WordPress<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
# END WordPress</code></p>
<p>Version 2: (subdirectory such as in this case &#8220;blog&#8221;)<br />
<code># BEGIN WordPress<br />
RewriteEngine On<br />
RewriteBase /blog/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /blog/index.php [L]<br />
# END WordPress</code></p>
<p>So just make sure you have that file out there and actually have the proper information in the file so that it works.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Fhtaccess-rules-for-wordpress-permalinks.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Fhtaccess-rules-for-wordpress-permalinks.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/htaccess-rules-for-wordpress-permalinks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit the Spam your Blog Attracts the Right Way</title>
		<link>http://www.wordpress-master.com/limit-spam-website-right-way.html</link>
		<comments>http://www.wordpress-master.com/limit-spam-website-right-way.html#comments</comments>
		<pubDate>Sat, 30 Jan 2010 22:42:47 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress General Tips]]></category>
		<category><![CDATA[Attempt]]></category>
		<category><![CDATA[best wordpress plugins]]></category>
		<category><![CDATA[Block Spam]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Contact Forms]]></category>
		<category><![CDATA[Content Management System]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[Email Addresses]]></category>
		<category><![CDATA[Eternity]]></category>
		<category><![CDATA[False Positives]]></category>
		<category><![CDATA[Ploy]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Real People]]></category>
		<category><![CDATA[Rule Of Thumb]]></category>
		<category><![CDATA[Site Stats]]></category>
		<category><![CDATA[using wordpress]]></category>
		<category><![CDATA[Viagra]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=525</guid>
		<description><![CDATA[The general theory is if you value your visitors communication then you should not make it harder for them to communicate in an attempt to block Spam. Instead there are many other ways to prevent it behind the scenes. CAPTCHA in my opinion is a last resort, but what other options are there?  How can you effectively prevent idiots from spamming your contact forms and comment boxes? ]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.wordpress-master.com/limit-spam-website-right-way.html" title="Permanent link to Limit the Spam your Blog Attracts the Right Way"><img class="post_image alignright" src="http://www.wordpress-master.com/wp-content/uploads/2010/01/akismet.png" width="234" height="242" alt="Akismet Configuration" /></a>
</p><p>In a previous article, I wrote about <a href="http://www.wordpress-master.com/does-captcha-hurt-your-blog.html">why you might consider CAPTCHA to be a bad method of protecting your blog from Spam</a>.  I&#8217;m not going to go into depth on that topic again, I&#8217;ve linked to it if you want to read it.  The general theory is if you value your visitors communication then you should not make it harder for them to communicate in an attempt to block Spam. Instead there are many other ways to prevent it behind the scenes.</p>
<p>So the first method I would do, and always do on every blog I create whether it&#8217;s for a client or for myself, is install Akismet.  Wordpress comes with it, it&#8217;s very light weight, powerful and effective.  Since Wordpress already comes with it installing it is just a matter of going to your plugins and clicking &#8220;Activate&#8221;.  There is one additional step and that is for you to go to Wordpress.com register a username only, and get your API Key.</p>
<p>Once you have your API Key, just enter it into your Akismet settings and you are all finished.</p>
<p>You&#8217;ll find Akismet is very effective.  I don&#8217;t see it miss very much spam, and I rarely see a false positive.  When you log into your Admin from now on, right there on the dashboard you&#8217;ll see your site stats and a link to your comment Spam.  With one click you can delete it all.  And it is very easy to scroll through it looking for false positives.</p>
<p>One thing to note though, spammers are crafty.  They&#8217;ll add comments about how correct the post was and how beneficial it was to them and that they are going to bookmark it for all eternity.  But if you look their name will be Viagra, and their web address will be something selling viagra.  It&#8217;s all just a ploy to try and get that comment approved and get some kind of link to their site.  Make sure you watch for real posts from real people that have something real to say.</p>
<h2>Protecting email addresses and contact forms.</h2>
<p>The next piece you should be aware of is that just by being online you are going to be subjected to spam.  So as a rule of thumb I never put email addresses on a website.  Spiders, and spam bots come along scraping the web of email addresses.  The only reason to put your email address out there in my opinion is if you really are out of Viagra and you haven&#8217;t gotten any emails from sources you can buy it from lately.</p>
<p>But keep in mind it is important to make it easy for visitors to contact you.  Instead of posting your email address it can be just as effective to just put up a contact form.  In my opinion it is even more effective.  By putting a link to your email there are many visitors that can&#8217;t click it to send you an email.  By clicking it their computer will try to open the default email client and send you mail.  What if they use webmail?  The link won&#8217;t work, they&#8217;ll need to copy and paste.  What if they are at a friends computer or coffee shop?  Well I guess if they don&#8217;t use webmail they&#8217;ll need to remember you website or your email address and email you when they get home.</p>
<p>Having a contact form means that without leaving your site they can just type in an email and hit submit and off it goes.  They just sent you an email.  This is a much better form of providing a point a contact in my opinion.</p>
<p>It is very important to use the proper contact form.  The contact form can&#8217;t allow header injection, it should check the referrer of the form post to see if the post came from your own site. These are just basic programming aspects, and if they are in place they will ensure that even if you get the occasional spam from the form it was probably manually submitted because a spammer was looking for a hole, chances are they won&#8217;t find one and they&#8217;ll move on to easier targets.</p>
<p>A nice Contact Form that is well programmed and secure that I use on many of my sites is <a href="http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/">produced by Dagon Design</a>.  And naturally, in my opinion you should turn the CAPTCHA off.</p>
<p>In conclusion, it is my opinion that with just a little bit of work you can block or make it much easier to deal with the majority of Spam coming through your website.  And this is the way it should be.  YOU should be dealing with the spam, your VISITORS should NOT be having to jump through hoops just to communicate.  Let me know what you guys think.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Flimit-spam-website-right-way.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Flimit-spam-website-right-way.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/limit-spam-website-right-way.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Does CAPTCHA Hurt Your Blog?</title>
		<link>http://www.wordpress-master.com/does-captcha-hurt-your-blog.html</link>
		<comments>http://www.wordpress-master.com/does-captcha-hurt-your-blog.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 05:15:36 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress General Tips]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[building blog traffic]]></category>
		<category><![CDATA[Cops]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[High Speed]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Miles Per Hour]]></category>
		<category><![CDATA[People]]></category>
		<category><![CDATA[Spam Bots]]></category>
		<category><![CDATA[Speed Crash]]></category>
		<category><![CDATA[Sweet Feeling]]></category>
		<category><![CDATA[wordpress tips]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=521</guid>
		<description><![CDATA[The main reason someone would consider using CAPTCHA on their blog to begin with is probably to try and prevent spammers. You open a website, and over time you'll notice that as your site gets found online the spam starts flowing in. It's a bitter sweet feeling. If the bots can find you, then people will start finding you, but you don't really want the spam bots on your site.

Normally to alleviate the extra work of dealing with all the spam many will use a CAPTCHA image in their form to prevent these automated bots from posting. But if you have a website then I'm sure you've visited another website. Have you ever visited a site with CAPTCHA and had difficulty posting anything because you can't read the letters?]]></description>
			<content:encoded><![CDATA[<p></p><p>I actually don&#8217;t get this question very often.  The question I often hear is, &#8220;Can you help me get CAPTCHA set up on my site/blog/etc?&#8221;. Usually people just want it but a lot of times they don&#8217;t think about whether or not its a good idea.</p>
<p>Think about it this way.  If you didn&#8217;t know cops exist, and you wanted to drive to work.  You know it takes maybe 20 minutes at 60 miles per hour, so naturally it will only take 10 minutes if you go 120 miles per hour, right?  Well, then you&#8217;ll discover the cops, and hopefully you won&#8217;t discover the high speed crash.</p>
<p>This is kind of how CAPTCHA can be for your blog, website, and more.  Naturally the negatives aren&#8217;t as harsh as being arrested or a high speed crash, but they might be pretty serious for a business.</p>
<p>The main reason someone would consider using CAPTCHA on their blog to begin with is probably to try and prevent spammers.  You open a website, and over time you&#8217;ll notice that as your site gets found online the spam starts flowing in.  It&#8217;s a bitter sweet feeling.  If the bots can find you, then people will start finding you, but you don&#8217;t really want the spam bots on your site.</p>
<p>Normally to alleviate the extra work of dealing with all the spam many will use a CAPTCHA image in their form to prevent these automated bots from posting. But if you have a website then I&#8217;m sure you&#8217;ve visited another website.  Have you ever visited a site with CAPTCHA and had difficulty posting anything because you can&#8217;t read the letters?</p>
<p>If you can read the letters then most bots can actually be programmed these days to read them as well.  So these letters are usually very hard to read.  Do you want to risk a potential contact getting frustrated and leaving the site?</p>
<p>A while back I found a study that a developer had created.  This particular developer tested CAPTCHA on 50 websites he was maintaining for his clients.  I can&#8217;t find the link to it right now or I&#8217;d post it for you.  The first 3 months he had 25 sites with CAPTCHA and 25 sites without, for the next 3 months he reversed it.  So he had the results of a pretty decent study.</p>
<p>He found on average on his well visited sites, that about 7% of the form submissions were spam, if I remember correctly.  Now on the months that CAPTCHA was in place he would see that all of spam failed to submit the form properly, but the interesting part was that an additional 4-5% of form submissions were also failing.  These were new unique visits as well, a total of 11-12% of failed submissions, compared to only 7% spam on the months with no CAPTCHA.</p>
<p>Maybe in the beginning of your site when Spam is high and human visitors are low, comparatively, then you can afford to take this risk.  But even considering the time you save if you have a start up website I would think that every single contact would be important.  Can you really afford to loose 1 out of every 20 visitors because they can&#8217;t get past your CAPTCHA?</p>
<p>Now if your offering or their reason for posting is so very compelling that they feel a strong need to do so, then they might fight through it.  But the less compelling the reason for posting, the easier the person will give up.  I don&#8217;t know if I want to take the risk of loosing 5% or even more.  I think I&#8217;ll just find other ways of dealing with the Spam.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Fdoes-captcha-hurt-your-blog.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Fdoes-captcha-hurt-your-blog.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/does-captcha-hurt-your-blog.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving your Wordpress Site?  Don&#8217;t forget hidden files.</title>
		<link>http://www.wordpress-master.com/moving-wordpress-site-hidden-files.html</link>
		<comments>http://www.wordpress-master.com/moving-wordpress-site-hidden-files.html#comments</comments>
		<pubDate>Fri, 15 Jan 2010 03:40:09 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[How To Fix Wordpress]]></category>
		<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Assumptions]]></category>
		<category><![CDATA[Configuration Settings]]></category>
		<category><![CDATA[Htaccess File]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Little Buggers]]></category>
		<category><![CDATA[Moving]]></category>
		<category><![CDATA[People]]></category>
		<category><![CDATA[using wordpress]]></category>
		<category><![CDATA[wordpress help]]></category>
		<category><![CDATA[wordpress tips]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=516</guid>
		<description><![CDATA[After helping move a Wordpress Installation for someone today, we found the site not working.  Specifically what appeared to be broken was the post and page links.  The home page displayed just fine, but try to go any deeper than that and all you see is 404 errors.  Turns out hidden files need to be moved also.

In Linux, any file that starts with a period is considered hidden.  Most FTP clients have the default setting of not displaying hidden files.  But you still can't forget to move them if you are moving your website.]]></description>
			<content:encoded><![CDATA[<p></p><p>I helped someone finish up a site move earlier today.  They had already moved the files and the database over.  All I needed to do was help set up the files, import the database, make sure the permissions were proper and double check any final configuration settings.</p>
<p>When I was finishing it up I always check the permissions of the .htaccess file.  It&#8217;s one file that is easy to miss.  On a fresh install it doesn&#8217;t even exist so I normally create it and make sure it has writable permissions since Wordpress is fully capable of setting up the .htaccess file for you if you change the permalink settings.</p>
<p>In this case, the file was missing, the person who had moved the files didn&#8217;t move this particular file.  It does happen on occasion.  In Linux anything that starts with a period is a hidden file.  If you download via FTP you might not see it by default.</p>
<p>But on this site I didn&#8217;t even think about it not being moved.  I was busy at the time and I had checked the site and it was showing up so I assumed good to go.  I did however create the file and give it writable permissions.  I figured some people don&#8217;t use the permalink setup, but in case they ever did in the future it&#8217;s set up so Wordpress can write it for them.</p>
<p>Well you know what they say about assumptions.  Naturally, I found out later none of their post links were working.  A quick check on the site and sure enough it was trying to use permalink but the .htaccess was empty so it wasn&#8217;t working.</p>
<p>Luckily this was an easy fix.  I had already created the file and made it writable.  I logged into their admin, went to permalink settings, turned the settings off, saved, turned it back on how they had it, saved, and good to go.  The site was back to working.</p>
<p>Lesson for me, don&#8217;t assume.  Lesson for others, make sure you move those hidden files.  Those little buggers are hiding after all.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Fmoving-wordpress-site-hidden-files.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Fmoving-wordpress-site-hidden-files.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/moving-wordpress-site-hidden-files.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix your Wordpress 404 error page</title>
		<link>http://www.wordpress-master.com/fix-your-404-error-page.html</link>
		<comments>http://www.wordpress-master.com/fix-your-404-error-page.html#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:42:17 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>
		<category><![CDATA[404 error]]></category>
		<category><![CDATA[404 Error Page]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Asp Aspx]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[blogging help]]></category>
		<category><![CDATA[Default Template]]></category>
		<category><![CDATA[Ecommerce Website]]></category>
		<category><![CDATA[Foreach]]></category>
		<category><![CDATA[General Idea]]></category>
		<category><![CDATA[Gt One]]></category>
		<category><![CDATA[Htmlentities]]></category>
		<category><![CDATA[Little Bit]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Match]]></category>
		<category><![CDATA[Query Posts]]></category>
		<category><![CDATA[Request Uri]]></category>
		<category><![CDATA[Server Request]]></category>
		<category><![CDATA[Strip Tags]]></category>
		<category><![CDATA[Taking Responsibility]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Wordpress Blog]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[Yoast]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=494</guid>
		<description><![CDATA[Previously I wrote a post about taking responsibility for your 404 errors.  Today I want to spend a little bit of time going over what I've done to change my own 404 error page. Wordpress actually makes it very easy to program an improved 404 error page.  Yoast.com had an interesting article on a few changes to make an attractive 404 page. I had a couple small issues with the code he shared but I still really liked the general idea.  I made a few changes which seems to work better for me.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.wordpress-master.com/fix-your-404-error-page.html" title="Permanent link to Fix your Wordpress 404 error page"><img class="post_image alignright" src="http://www.wordpress-master.com/wp-content/uploads/2009/12/404-display1.png" width="300" height="251" alt="Default Wordpress 404 Page" /></a>
</p><p>Previously I wrote a post about <a href="http://www.wordpress-master.com/taking-responsibility-404-errors.html">taking responsibility for your 404 errors</a>.  Today I want to spend a little bit of time going over what I&#8217;ve done to change my own 404 error page.</p>
<p>You can see on the right what the default template and the default 404 error page looks like.  Needless to say it leaves a lot to be desired.</p>
<p>Wordpress actually makes it very easy to program an improved 404 error page.  Yoast.com had an interesting article on a few changes to <a href="http://yoast.com/404-error-pages-wordpress/">make an attractive 404 page</a>. I had a couple small issues with the code he shared but I still really liked the general idea.  I made a few changes which seems to work better for me.</p>
<p>However you decide to design your error pages, keep in mind that they are important.  Doesn&#8217;t matter if you are using a Wordpress blog, and eCommerce website, you don&#8217;t want to loose the traffic for visitors that might be coming into your site from an invalid link.</p>
<p>Editing your 404 Error Page is really simple.  For most templates you simply need to edit the file named 404.php  So here&#8217;s where I went with it:</p>
<blockquote><p>## Pull Query Variables and check for exact match ##<br />
$s = htmlentities(strip_tags($_SERVER['REQUEST_URI']));<br />
$s = str_replace(&#8216;/&#8217;,&#8221;,$s);<br />
$s = preg_replace(&#8216;/(.*)\.(html|htm|php|asp|aspx)?$/&#8217;,'$1&#8242;,$s);<br />
$posts = query_posts(&#8216;post_type=any&amp;name=&#8217;.$s);</p>
<p>## If no posts match perform search ##<br />
$s = str_replace(&#8216;-&#8217;,&#8217; &#8216;,$s);<br />
if (count($posts) == 0) {<br />
$posts = query_posts(&#8216;post_type=any&amp;s=&#8217;.$s);<br />
}</p>
<p>## Display results of either direct match or post search ##<br />
echo &#8216;&lt;ol&gt;&#8217;;<br />
if (count($posts) &gt; 0) {<br />
echo &#8216;&lt;li&gt;Were you looking for &lt;strong&gt;one of the following&lt;/strong&gt; posts or pages?&#8217;;<br />
echo &#8216;&lt;ul&gt;&#8217;;<br />
foreach ($posts as $post) {<br />
echo &#8216;&lt;li&gt;&#8217;;<br />
echo &#8216;&lt;a href=&#8221;&#8216;.get_permalink($post-&gt;ID).&#8217;&#8221;&gt;&#8217;.$post-&gt;post_title.&#8217;&lt;/a&gt;&#8217;;<br />
echo &#8216;&lt;/li&gt;&#8217;;<br />
}<br />
echo &#8216;&lt;/ul&gt;&#8217;;<br />
}<br />
echo &#8216;If not, don\&#8217;t worry, here are a few more options:&lt;/li&gt;&#8217;;<br />
echo &#8216;&lt;li&gt;&lt;strong&gt;If you typed in a URL&amp;hellip;&lt;/strong&gt; make sure the spelling, cApitALiZaTiOn, and punctuation are correct. Then try reloading the page.&lt;/li&gt;&#8217;;<br />
echo &#8216;&lt;li&gt;&lt;strong&gt;Look&lt;/strong&gt; for it in the &lt;a href=&#8221;/sitemap&#8221;&gt;sitemap.&lt;/a&gt;&lt;/li&gt;&#8217;;<br />
echo &#8216;&lt;li&gt;&lt;strong&gt;Start over again&lt;/strong&gt; at my &lt;a href=&#8221;/&#8221;&gt;homepage&lt;/a&gt; (and please &lt;a href=&#8221;/contact-jason&#8221;&gt;contact me&lt;/a&gt; to say what went wrong, so I can fix it).&lt;/li&gt;&lt;/ol&gt;&#8217;;</p></blockquote>
<p>Here&#8217;s a quick graphic to show you how you might find the 404.php page from the admin of your Wordpress site:</p>
<p><a href="http://www.wordpress-master.com/wp-content/uploads/2009/12/404-default.png"><img class="aligncenter size-medium wp-image-513" title="Changing 404 Default" src="http://www.wordpress-master.com/wp-content/uploads/2009/12/404-default-300x284.png" alt="Changing Default Wordpress 404 page" width="300" height="284" /></a></p>
<p>As you can see here from the code I took the Request URI from the server variables.  I clean it removing the starting slash as well as the ending extension.  I then take and process to see if I can find a name match, if not I remove dashes and do an actual keyword search.</p>
<p>My final result builds a page which includes the above results if there were any.  In addition I add in a possible fix, links to site map and home page, as well as a link to my contact page.</p>
<p>I still want to add the ability for a visitor to just perform a search right there on the 404 page, which technically they can in my header, but we&#8217;ll see what I put together who knows.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Ffix-your-404-error-page.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Ffix-your-404-error-page.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/fix-your-404-error-page.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upload Permissions for Wordpress in Plesk</title>
		<link>http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html</link>
		<comments>http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 05:09:34 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[How To Fix Wordpress]]></category>
		<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress Advanced]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Bad Habits]]></category>
		<category><![CDATA[Domain User]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[Environments]]></category>
		<category><![CDATA[Folders]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[Mydomain]]></category>
		<category><![CDATA[Parent Directory]]></category>
		<category><![CDATA[Plague]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Safe Mode]]></category>
		<category><![CDATA[Scenarios]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Upload]]></category>
		<category><![CDATA[using wordpress]]></category>
		<category><![CDATA[Vps]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress help]]></category>
		<category><![CDATA[wordpress tips]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=502</guid>
		<description><![CDATA[Installing Wordpress is a pretty easy and straight forward task.  Sometimes your hosting situation can throw you a few snags.  Recently I came across an issue with the Media Upload folder in Plesk.  Wordpress would create a portion of the path but not the entire path.  The solution while elusive, wasn't as off the wall as I thought it would be.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html" title="Permanent link to Upload Permissions for Wordpress in Plesk"><img class="post_image alignnone" src="http://www.wordpress-master.com/wp-content/uploads/2009/12/access-denied.gif" width="200" height="200" alt="Post image for Upload Permissions for Wordpress in Plesk" /></a>
</p><p>Most of you know that installing Wordpress is a pretty easy and straight forward job, and if you don&#8217;t know it already just try it out once or twice and you&#8217;ll see how easy it is.  But if you&#8217;ve been around the block you&#8217;ll also know that different hosting environments and situations can throw some different scenarios at you.</p>
<p>Not too long ago I came across a problem that I haven&#8217;t seen before.  The situation was installing Wordpress in a hosting environment with a Plesk Control Panel.  Although this situation could arise in multiple other environments, I just hadn&#8217;t encountered it because I normally prefer to stick to VPS and VDS hosting without a control panel, and I really stay away from purely shared hosting like it&#8217;s the plague.</p>
<p>After installing Wordpress any time I tried to upload media (with the setting to organize by date) into the Wordpress system I would get the error:</p>
<blockquote><p>Unable to create directory /var/www/vhosts/[mydomain]/httpdocs/wp-content/uploads/2009/11. Is its parent directory writable by the server?</p></blockquote>
<p>The part that threw me off was that I had created the uploads directory, I gave the directory 777 permissions so that Apache could create files and folders beneath it, and I actually found that the installation would create the &#8220;2009&#8243; directory, but nothing any further.  If I went ahead and created the &#8220;11&#8243; directory and gave it write permissions then it could write uploads, but once the next month came around same problem again.</p>
<p>To top it all off, I first came across this problem in front of a client that I was teaching some hosting tricks.  So now I was just looking like an idiot.</p>
<p>Turns out the problem was related to Safe Mode.  My own bad habits persisted when normally setting up domains so I would turn Safe Mode off in my own VPS hosting, but when teaching the &#8220;correct&#8221; way I recommended leaving Safe Mode on.  Well if your scripts are owned by your domain user, and then naturally running under the Apache User, then Safe Mode won&#8217;t create objects underneath a path that has mixed ownership.</p>
<p>It will allow the first directory to be created &#8220;2009&#8243;, but then the next won&#8217;t be allowed.  So the easy solution is to turn off Safe Mode.</p>
<p>Some people probably won&#8217;t think this is the best option.  The same people don&#8217;t like to set public folders to 777.  But if you are on VPS hosting with a Plesk CP inside your container and it&#8217;s just your container you are good to go.  No one else has access to your system but you in the first place.</p>
<p>Of course if you are on or providing shared hosting for many customers, this might not be ideal.  With Shared Hosting you will be giving access to those folders to other customers in the same shared environment.  It would be more ideal to just change the ownership of all the Wordpress files to &#8220;Apache:Apache&#8221; or whatever user:group that apache is running as.  Then you can leave Safe Mode on, and folder permissions to be writable only need 755.  Keep in mind that this only works if you are the provider, if you are just hosting on a shared system you won&#8217;t have the ability to do this.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Fupload-permissions-wordpress-plesk.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Fupload-permissions-wordpress-plesk.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Why should you be taking responsibility for your 404 errors?</title>
		<link>http://www.wordpress-master.com/taking-responsibility-404-errors.html</link>
		<comments>http://www.wordpress-master.com/taking-responsibility-404-errors.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 17:20:35 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress Theme Tips]]></category>
		<category><![CDATA[404 error]]></category>
		<category><![CDATA[Address]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[blog publishing]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Content Management System]]></category>
		<category><![CDATA[Default Error]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Illiterate Person]]></category>
		<category><![CDATA[Oh Yeah]]></category>
		<category><![CDATA[Proactive]]></category>
		<category><![CDATA[Suitable Replacement]]></category>
		<category><![CDATA[Taking Responsibility]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=490</guid>
		<description><![CDATA[Are you blaming your visitors for getting a 404 error?  And more importantly is it really their fault?  And even if it is their fault, is it better to take the blame and help them move to a page that does exist, or just go ahead and leave a default error page up and loose that visitor to the rest of the internet?]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.wordpress-master.com/taking-responsibility-404-errors.html" title="Permanent link to Why should you be taking responsibility for your 404 errors?"><img class="post_image alignright" src="http://www.wordpress-master.com/wp-content/uploads/2009/11/404d-it.jpg" width="200" height="212" alt="404 error" /></a>
</p><p>If you&#8217;ve been online for very long you&#8217;ve probably clicked at least one link or visited some page that resulted in a 404 error.  I even went and asked a friend of mine, who is probably the most internet illiterate person I know, about 404 errors.  She immediately responded with oh yeah 404 I see that pop up sometimes, it means the page can&#8217;t be found or something right?  I just go back or leave immediately and try to find what I need elsewhere.</p>
<p>This is part of the problem I see everywhere.  When I do see a 404, the majority of the time, I usually notice that the error page is blaming me for going to a page that no longer exists.  And probably more than 90% of the time all I did to get there was click a link from some other website.  So how exactly is it my fault again?</p>
<p>Are you blaming your visitors for getting a 404 error?  And more importantly is it really their fault?  And even if it is their fault, is it better to take the blame and help them move to a page that does exist, or just go ahead and leave a default error page up and loose that visitor to the rest of the internet?</p>
<p>Personally, I feel responsible for all 404 errors that someone might get on my site.  The time the visitor might have clicked a link from Google that no longer exists.  Maybe they clicked a link from another blog where the other blogger typed the link wrong.</p>
<p>I should have been redirecting any pages I deleted to a suitable replacement.  Or I should be watching for incoming links to my site and if they are wrong redirecting them to appropriate pages.  The idea is that I feel I should be as proactive as possible to prevent 404 errors when possible, and when I fail to do so it is my fault.</p>
<p>There of course are some 404 errors that you can never find or be proactive to take care of, such as a visitor manually typing an address on your pages and ending up at a 404.  But even in this case I don&#8217;t want to just blame them and loose a visitor.  Instead I&#8217;d rather accept the blame and try to help that person the best I can to move into a legitimate page on my site.</p>
<p>So what are your thoughts?  Most people over look this area of their site, and maybe it&#8217;s not a huge issue, but when fine tuning your site it is something often overlooked.  How would you better your 404 error page?
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Ftaking-responsibility-404-errors.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Ftaking-responsibility-404-errors.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/taking-responsibility-404-errors.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Redirecting Feed to Feedburner with htaccess</title>
		<link>http://www.wordpress-master.com/redirecting-feed-htaccess.html</link>
		<comments>http://www.wordpress-master.com/redirecting-feed-htaccess.html#comments</comments>
		<pubDate>Wed, 04 Nov 2009 06:30:35 +0000</pubDate>
		<dc:creator>Ed Gately</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Setting Up Wordpress]]></category>
		<category><![CDATA[Wordpress General Tips]]></category>
		<category><![CDATA[9a]]></category>
		<category><![CDATA[Attempts]]></category>
		<category><![CDATA[blog content]]></category>
		<category><![CDATA[Change Address]]></category>
		<category><![CDATA[Feedburner]]></category>
		<category><![CDATA[Fun Story]]></category>
		<category><![CDATA[Gadget]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Htaccess File]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[Occasion]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Rewritecond]]></category>
		<category><![CDATA[Several Times]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Subscribers]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Rss]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.wordpress-master.com/?p=465</guid>
		<description><![CDATA[In anything I do with a website I always keep overhead in mind.  Redirecting your RSS feed to Feedburner can easily be done with a htaccess redirect.  It doesn't have the overhead of a plugin, and it does the job.  And in the process I learned a quick little lesson about just trying to save time by grabbing others code.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.wordpress-master.com/redirecting-feed-htaccess.html" title="Permanent link to Redirecting Feed to Feedburner with htaccess"><img class="post_image alignright" src="http://www.wordpress-master.com/wp-content/uploads/2009/11/world_wide_web.jpg" width="300" height="225" alt="Post image for Redirecting Feed to Feedburner with htaccess" /></a>
</p><p>So here&#8217;s a fun story about some wasted time.  I configured feedburner a while back to use as the RSS Feed for the site.</p>
<p>I like the way Feedburner looks compared to the default RSS Feed.  The social icons are better, you can get better statistics out of the system.  Plus, it&#8217;s owned by Google.  Never hurts to supply Google with as many links to your site as possible (don&#8217;t quote me on that, I really doubt it actually matters).</p>
<p>A lot of times, I like to be a log junkie.  I sit back and hunt through my site logs on occasion.  I like to look for errors with the site, and fix them before they cause to many issues. Sometimes I even find malicious bots trolling the site and I can block them or deal with them at least.</p>
<p>Anyway, I noticed that there were several attempts to hit the Wordpress RSS feed that is the default.  The systems ( a Google Gadget, something from Yahoo, etc. ) were hitting the site on a regular basis.  It&#8217;s not that they were getting old information, but it was quite a few subscribers that weren&#8217;t getting the legitimate feed, and thus I wouldn&#8217;t see the proper tracking.</p>
<p>I started scouring the Google Search for a method to redirect the feed via a redirect in the htaccess file.  I didn&#8217;t want to use a plugin and create additional overhead when it can be done so easily with the htaccess.  And I didn&#8217;t want to spend the time to write it myself, when I&#8217;m sure it was out there several times over.</p>
<p>I found a code block from <a href="http://perishablepress.com/press/2008/03/25/redirect-wordpress-feeds-to-feedburner-via-htaccess-redux/">Perishable Press</a>:<br />
<code># temp redirect wordpress content feeds to feedburner<br />
RewriteEngine on<br />
RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]<br />
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]<br />
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/wordpress-master/feed [R=302,NC,L]<br />
</code></p>
<p>Naturally if you are going to use this code make sure you change out my feedburner address for your own.</p>
<p>The problem was that after I added it to my htaccess it didn&#8217;t work.  I just popped it in really quickly, wasn&#8217;t paying attention at all.</p>
<p>After spending a lot more time than I wanted to spend on it, researching alternatives online.  I finally started reading comments.  There are several posts out there that all use this code, but none solved my problem.</p>
<p>Reading the comments, someone mentioned that the code has to be <strong>before</strong> the permalink rewrites that Wordpress uses.  Doh, I&#8217;m an idiot.  If I would have just spent two seconds to actually look at the code I would have realized it.  But instead I tried to save time and just do it quickly.</p>
<p>I guess in this case trying to NOT &#8220;reinvent the wheel&#8221; I cost myself a lot of unnecessary time.  Especially on something this simple that I could have just written myself.  Oh well, live and learn.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wordpress-master.com%2Fredirecting-feed-htaccess.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wordpress-master.com%2Fredirecting-feed-htaccess.html&amp;source=wordpressmaster&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordpress-master.com/redirecting-feed-htaccess.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
