<?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>Money-Code &#187; apache</title>
	<atom:link href="http://www.money-code.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Tue, 15 Nov 2011 18:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Good adjustments made to my new WordPress blog</title>
		<link>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/</link>
		<comments>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:16:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/2009/06/265/</guid>
		<description><![CDATA[As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my [...]


Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my popular posts to be redirected to their new locations here. I went with SEO friendly URLs so had to do some redirects using my .htaccess file.</p>
<p>Along with rewrites, I made some security adjustment to them and thought it would be good talk about those as well.</p>
<p>First to do redirects you can use mod_rewrite or something simple like Redirect. Here is what I did for my redirects of my popular posts:</p>
<div class="dean_ch" style="white-space: wrap;">Redirect <span class="nu0">301</span> /node/<span class="nu0">46</span> http:<span class="co1">//www.money-code.com/2007/11/using-ffmpeg-to-create-youtube-clone-script/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">93</span> http:<span class="co1">//www.money-code.com/2008/09/epn-bannings-and-epc/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">32</span> http:<span class="co1">//www.money-code.com/2007/10/url-masking-cloaking/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">23</span> http:<span class="co1">//www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">15</span> http:<span class="co1">//www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">61</span> http:<span class="co1">//www.money-code.com/2008/01/cj-apiwebservice-version-2/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">20</span> http:<span class="co1">//www.money-code.com/2007/09/build-a-niche-store-bans-unsatisfied-programmer/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">64</span> http:<span class="co1">//www.money-code.com/2008/01/how-to-search-amazons-catalog-with-amazons-associate-web-service/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">37</span> http:<span class="co1">//www.money-code.com/2007/10/ebay-rss-querystringvariable-definitions/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">56</span> http:<span class="co1">//www.money-code.com/2007/12/how-to-use-ppc-with-your-ebay-affiliate-store-fronts/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">77</span> http:<span class="co1">//www.money-code.com/2008/03/prepare-for-ebay-partner-network-cutover/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">14</span> http:<span class="co1">//www.money-code.com/2007/09/capture-search-data-on-your-site/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">98</span> http:<span class="co1">//www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">44</span> http:<span class="co1">//www.money-code.com/2007/11/shoemoneys-google-adsense-check/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">71</span> http:<span class="co1">//www.money-code.com/2008/02/popshops/</span></div>
<p>Here we&#8217;re using Redirect 301 which is &#8220;Moved Permanently&#8221;. It&#8217;s looking for the node variable with was Drupal&#8217;s page handling and redirecting to the new SEO friendly WordPress URLs.</p>
<p>The next item I always like to include is adding proper 403 and 404 handlers in .htaccess. Basically when a 403 (Client Denied) or 404 (File not found), I like to redirect the user back to the home page instead of giving them a crappy Apache message. You can get fancier by creating custom error pages, but redirect works find for me. Here is what you would add for this:</p>
<div class="dean_ch" style="white-space: wrap;">ErrorDocument <span class="nu0">403</span> http:<span class="co1">//www.money-code.com</span><br />
ErrorDocument <span class="nu0">404</span> http:<span class="co1">//www.money-code.com</span></div>
<p>The other piece that is really important, and often not used is turning OFF indexes. Basically if you go to a directory without a index page (ie: index.php), it will list out the contents of that directory. This is a potential security risk, it can show what items you have installed, or provide files for download that you did not want downloaded. By simply adding this, it will throw a 403 to the user that hits a page without a index file.</p>
<div class="dean_ch" style="white-space: wrap;">Options -Indexes</div>
<p>I primarily did this since I don&#8217;t want people seeing my wp-content/plugins directory, but I see as of 2.8, they&#8217;ve added a index.php with nothing in it, causing a white page. This is good, but I think it&#8217;s still good practice to prevent directory browsing like this.</p>
<p>The other piece I like to do is restrict administrative access to my IPs. I&#8217;m a freak this way. I have static IPs at my office, and I also have VPN access, so I like to restrict access to certain IPs on my network. Basically, I have to be at my office OR VPN&#8217;d to my office to edit my pages. This is a pain to many people, and I can understand people not into this, and that&#8217;s fine, but it really reduces the risk of brute force attacks to your admin area.  If you&#8217;re interested in this measure here is the code you would include in the .htaccess file residing wp-admin/:</p>
<div class="dean_ch" style="white-space: wrap;">order deny,allow<br />
<span class="re1">deny from all</span><br />
allow from xxx.xxx.xxx.xxx</div>
<p>Obvisouly, xxx.xxx.xxx.xxx would be your static IP or subnet xxx.xxx.xxx.xxx./16 for example.</p>
<p>I&#8217;ve always been uneasy with WordPress due to it&#8217;s history and potential damage it can cause on the server it lives on. The bottom line is to keep your install up to date, and that includes your plugins. I&#8217;ll also be setting a subdomain for testing purposes (only available to my IP) to handle large WP updates.</p>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
