<?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>Albertech.net &#187; wordpress mu</title>
	<atom:link href="http://albertech.net/tag/wordpress-mu/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:40:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress MU: Limit access to certain blogs</title>
		<link>http://albertech.net/2009/07/wordpress-mu-limit-access-to-certain-blogs/</link>
		<comments>http://albertech.net/2009/07/wordpress-mu-limit-access-to-certain-blogs/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 20:22:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[limit access]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=203</guid>
		<description><![CDATA[I recently implemented a way to limit access by IP range on specific blogs on WordPress MU. As you know, WordPress MU uses Apache Rewrite engine to rewrite URLs. For instance, you have a blog on WordPress MU called "intranet". Apache Rewrite takes the "intranet" string in the URL and automatically rewrites it as a value in the PHP script. A side effect to Apache Rewrite is that "Directory" .htaccess parameters don't work. So, if you wanted only your company IPs to access an internal blog, you will need to use Apache Rewrite parameters instead. For the solution, read on...]]></description>
			<content:encoded><![CDATA[<p>I recently implemented a way to limit access by IP range on specific blogs on WordPress MU. As you know, WordPress MU uses Apache Rewrite engine to rewrite URLs. For instance, you have a blog on WordPress MU called &#8220;intranet&#8221;. Apache Rewrite takes the &#8220;intranet&#8221; string in the URL and automatically rewrites it as a value in the PHP script. A side effect to Apache Rewrite is that &#8220;Directory&#8221; .htaccess parameters don&#8217;t work. So, if you wanted only your company IPs to access an internal blog, you will need to use Apache Rewrite parameters instead.</p>
<p>Here&#8217;s how to limit access to an IP or subnet on a particular blog on your WordPress MU install:</p>
<p><strong>DISCLAIMER:</strong> <span style="text-decoration: underline;">Modifying .htaccess files can break your WordPress MU install. </span>ALWAYS backup your .htaccess file. Simply, copy .htaccess file and rename it to .htaccess-backup. (cp .htaccess .htaccess-backup)</p>
<p><strong>Step 1:</strong></p>
<p>Add a section <strong>after</strong> the &#8220;RewriteEngine On<br />
RewriteBase /&#8230;&#8221; section</p>
<p><code>RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4<br />
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.5<br />
RewriteCond %{REQUEST_URI} ^/BLOG1<br />
RewriteRule .* - [F]<br />
</code></p>
<p><strong>DO NOT SAVE YET. You will need edit the IP address info and blog info first:</strong></p>
<p><strong>Step 2: Replace the 1.2.3.4 number with your company IPs</strong> (its easier if you have an entire subnet or you can use internal IPs)</p>
<p><strong>For a class C,</strong> the part after {REMOTE ADDR} would be<br />
!^1\.2\3\.</p>
<p><strong>Step 3: Replace BLOG1</strong> with the blog you want to limit access to those IPs. So http://www.mysite.com/myfirstblog would be &#8220;^/blogs/</p>
<p><strong>Optional: </strong>If you have WordPressMU installed in a folder (e.g. not your root folder), you will need to append the directory in front of the blog name.</p>
<p>For instance, if you have http://mysite.com/blog (as your WordPress MU root folder) the ^/ BLOG1 would be</p>
<p>^/blog/BLOG1</p>
<p><strong>Optional: Multiple blogs with same access restrictions</strong><br />
By default, the Apache Rewrite treats every line as an AND statement. If you have multiple blogs, you will need to have an [OR] at the end of the line.</p>
<p><code>RewriteCond %{REQUEST_URI} ^/BLOG1 [OR]<br />
RewriteCond %{REQUEST_URI} ^/BLOG2</code></p>
<p><strong>Errors?</strong></p>
<ul>
<li>Make sure you have ^/ marks in front of the blog names</li>
<li>IP addresses must have a backslash before each dot. Regular expression for dot is concatenate by default, so it needs to be escaped</li>
<li>Make sure you don&#8217;t forget the !^ sign before the IP, otherwise you will be forbidden.</li>
</ul>
<p>If all else fails, if can&#8217;t fix the  error, just copy back the .htaccess-backup to the .htaccess file.</p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/07/wordpress-mu-limit-access-to-certain-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordCamp SF 2009</title>
		<link>http://albertech.net/2009/06/wordcamp-sf-2009/</link>
		<comments>http://albertech.net/2009/06/wordcamp-sf-2009/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 20:04:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=181</guid>
		<description><![CDATA[I attended WordCamp SF for the first time in 2009. There was some exciting news at the camp, especially with the news that WordPress MU functionality is going to get integrated with WordPress. This will be nice considering updates for WordPress MU are usually a month or so behind. What will this mean? Hopefully, it will bring a larger community in maintaining and adding new plugins for WordPress (MU).  The question will be whether it will be easy to convert an existing WordPress MU install over to the new WordPress. (Possibly WordPress 3.0?)
]]></description>
			<content:encoded><![CDATA[<p> <img class="alignnone" title="WordCamp 2009" src="http://farm4.static.flickr.com/3601/3588572640_bf524f6fa5.jpg?v=0" alt="" width="500" height="333" /><br />
<strong>I attended WordCamp SF for the first time in 2009.</strong> There was some exciting news at the camp, especially with the news that WordPress MU functionality is going to get integrated with WordPress. This will be nice considering updates for WordPress MU are usually a month or so behind. What will this mean? Hopefully, it will bring a larger community in maintaining and adding new plugins for WordPress (MU).  The question will be whether it will be easy to convert an existing WordPress MU install over to the new WordPress. (Possibly WordPress 3.0?)</p>
<p><strong>Highlights of the conference:<br />
Timothy Ferriss</strong>, nominated as one of Fast Company’s “Most Innovative Business People of 2007,” is an angel investor and author of the #1 New York Times, Wall Street Journal, and BusinessWeek bestseller, <a href="http://www.amazon.com/gp/product/0307353133?ie=UTF8&amp;tag=offsitoftimfe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0307353133" target="_blank">The 4-Hour Workweek</a>, which has been sold into 35 languages. He had a lot of good points on tweaking blogs to reach a larger audience.</p>
<p><strong>WordPress gear!</strong> I plan on sending out some stickers and buttons I got at the conference.. stay tuned.</p>
<p><strong>BuddyPress</strong> There&#8217;s a lot of potential with the community aspect of blogs. I&#8217;m hoping this functionality will be integrated with WordPress MU.</p>
<p><strong>Community Speakers and Authors</strong>: <a href="http://2009.sf.wordcamp.org/speakers/#chris">http://2009.sf.wordcamp.org/speakers/#chris</a> Chris Pirillo is an excellent speaker, had a lot of interesting points about the importance of the community.</p>
<p><a href="http://2009.sf.wordcamp.org/speakers/#tara">http://2009.sf.wordcamp.org/speakers/#tara</a> Tara Hunt&#8217;s book about the value of building community vs. buying a community.</p>
<p><a href="http://2009.sf.wordcamp.org/speakers/#cali">http://2009.sf.wordcamp.org/speakers/#cali</a> Cali Lewis (GeekBrief.TV) talked about building an interactive audience. Learned a lot about the challenges of video vs. audio cast.</p>
<p>Last but not least, the community! It was great meeting everyone at the after party.</p>
<p><strong>More info about the upcoming merge with WordPress MU and WordPress (see the comments below the post)</strong><br />
<a href="http://technosailor.com/2009/05/30/wordcamp-sf-announcement-wordpress-and-wordpress-mu-to-merge/">http://technosailor.com/2009/05/30/wordcamp-sf-announcement-wordpress-and-wordpress-mu-to-merge/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/06/wordcamp-sf-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress MU: Add private blogs</title>
		<link>http://albertech.net/2009/04/wordpress-mu-add-private-blogs/</link>
		<comments>http://albertech.net/2009/04/wordpress-mu-add-private-blogs/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 17:40:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[private blog]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=145</guid>
		<description><![CDATA[I have found a really useful plugin in Wordpress MU for making a blog private. Sometimes, committees need a way to share information away from home and they don't want everything posted to be known by the world. Rather than using the "Password protect post" option, there is a way to only allow registered users that are members of the blog to view the post. 

By default, the privacy options in Wordpress MU is limited to 1) Public, allow search engines 2) Public, don't allow search engines.

http://wpmudev.org/project/More-Privacy-Options

This plugin adds functionality:
3) I would like my blog to be visible only to registered users from blog community
4) I would like my blog to be visible to registered members of this blog
5) I would like my blog to be visible only to administrators]]></description>
			<content:encoded><![CDATA[<p>I have found a really useful plugin in WordPress MU for making a blog private. Sometimes, committees need a way to share information away from home and they don&#8217;t want everything posted to be known by the world. Rather than using the &#8220;Password protect post&#8221; option, there is a way to only allow registered users that are members of the blog to view the post.</p>
<p>By default, the privacy options in WordPress MU is limited to 1) Public, allow search engines 2) Public, don&#8217;t allow search engines.</p>
<p><a href="http://wpmudev.org/project/More-Privacy-Options">http://wpmudev.org/project/More-Privacy-Options</a></p>
<p><strong>This plugin adds functionality:</strong><br />
3) I would like my blog to be visible only to registered users from blog community<br />
4) <strong>I would like my blog to be visible to registered members of this blog<br />
</strong>5) I would like my blog to be visible only to administrators</p>
<p><strong>To install:</strong><br />
1) Download the plugin file.<br />
2) Copy the plugin file to the plugin folder in WordPress MU<br />
3) In the Plugin interface in WordPress MU, activate the &#8220;More Privacy Options&#8221; Plugin<br />
4) In the Privacy option of the blog (under Settings -&gt; Privacy) you will have the additional privacy options. Select the &#8220;I would like my blog to be visible to registered members of this blog<br />
I would like my blog to be visible to registered members of this blog&#8221; option.<br />
5) Note: AFAIK, this is on a site by site basis, so will need to enable this plugin for each blog you want to add it to.</p>
<p><strong>Update 4/28/2010:</strong><br />
If you upgrade WordPress MU to a newer version, you will need to set the &#8220;Privacy Settings&#8221; again. Occasionally, the WordPress upgrade will reset the privacy settings back to default.</p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/04/wordpress-mu-add-private-blogs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
