<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Judebert.com (Entries tagged as htaccess)</title>
    <link>http://judebert.com/progress/</link>
    <description>Progress Report</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:judebert@judebert.com" />
    <generator>Serendipity 1.6.2 - http://www.s9y.org/</generator>
    <managingEditor>judebert@judebert.com</managingEditor>

    <image>
        <url>http://www.judebert.com/progress/judebert.gif</url>
        <title>RSS: Judebert.com - Progress Report</title>
        <link>http://judebert.com/progress/</link>
        <width>100</width>
        <height>100</height>
    </image>

<item>
    <title>PHP Error Logging in .htaccess</title>
    <link>http://judebert.com/progress/archives/300-PHP-Error-Logging-in-.htaccess.html</link>
            <category>Web Activities</category>
    
    <comments>http://judebert.com/progress/archives/300-PHP-Error-Logging-in-.htaccess.html#comments</comments>
    <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=300</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://judebert.com/progress/rss.php?version=2.0&amp;type=comments&amp;cid=300</wfw:commentRss>
    

    <author>judebert@judebert.com (Judebert)</author>
    <content:encoded>
    &lt;p&gt;I found &lt;a href=&quot;http://perishablepress.com/press/2008/01/14/advanced-php-error-handling-via-htaccess/&quot;&gt;a fantastic explanation of .htaccess control of PHP error logging&lt;/a&gt;.  I&#039;ve bookmarked it (and now I&#039;ve webmarked it via my site!), and you should, too.  Invaluable information for developers and tech support pesonnel.
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 21 Nov 2008 08:43:22 -0500</pubDate>
    <guid isPermaLink="false">http://judebert.com/progress/archives/300-guid.html</guid>
    <category>howto</category>
<category>htaccess</category>
<category>php</category>

</item>
<item>
    <title>Blog Maintenance and the 503 Status</title>
    <link>http://judebert.com/progress/archives/299-Blog-Maintenance-and-the-503-Status.html</link>
            <category>Tutorials</category>
    
    <comments>http://judebert.com/progress/archives/299-Blog-Maintenance-and-the-503-Status.html#comments</comments>
    <wfw:comment>http://judebert.com/progress/wfwcomment.php?cid=299</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://judebert.com/progress/rss.php?version=2.0&amp;type=comments&amp;cid=299</wfw:commentRss>
    

    <author>judebert@judebert.com (Judebert)</author>
    <content:encoded>
    &lt;p&gt;&lt;a href=&quot;http://www.optional-necessity.com/&quot;&gt;Don&lt;/a&gt; wanted a way to block access to his blog while he was fiddling with it.  He found &lt;a href=&quot;http://www.askapache.com/htaccess/503-service-temporarily-unavailable.html&quot;&gt;information about the 503 code&lt;/a&gt; online.  
&lt;/p&gt;&lt;p&gt;
Of course, they want to return different codes for search engines and for users.  We figured we wanted to return the same thing for users and search engines; after all &quot;Service Unavailable&quot; is the actual status, regardless of who&#039;s visiting.  The only exception should be the blog maintainer.
&lt;/p&gt;&lt;p&gt;
Here&#039;s the .htaccess we worked out:
&lt;/p&gt;
&lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;RewriteEngine&amp;#160;On
RewriteBase&amp;#160;/serendipity
#&amp;#160;Allow&amp;#160;blog&amp;#160;maintainer&amp;#160;back&amp;#160;in
RewriteCond&amp;#160;%{REMOTE_HOST}&amp;#160;!^your\.IP\.address\.here
#&amp;#160;Don&#039;t&amp;#160;loop&amp;#160;forever
RewriteCond&amp;#160;%{REQUEST_URI}&amp;#160;!^/503\.php
RewriteRule&amp;#160;.&amp;#42;&amp;#160;503.php&amp;#160;&amp;#91;L&amp;#93;&lt;/div&gt;
&lt;p&gt;And here&#039;s the 503.php file I like:&lt;/p&gt;
&lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;&amp;#60;?php
header&amp;#40;&#039;HTTP/1.1&amp;#160;503&amp;#160;Service&amp;#160;Temporarily&amp;#160;Unavailable&#039;&amp;#41;;
header&amp;#40;&#039;Status&amp;#58;&amp;#160;503&amp;#160;Service&amp;#160;Temporarily&amp;#160;Unavailable&#039;&amp;#41;;
header&amp;#40;&#039;Retry-After&amp;#58;&amp;#160;3600&#039;&amp;#41;;
header&amp;#40;&#039;X-Powered-By&amp;#58;&#039;&amp;#41;;
?&amp;#62;&amp;#60;!DOCTYPE&amp;#160;HTML&amp;#160;PUBLIC&amp;#160;&quot;-//IETF//DTD&amp;#160;HTML&amp;#160;2.0//EN&quot;&amp;#62;
&amp;#60;html&amp;#62;&amp;#60;head&amp;#62;
&amp;#60;title&amp;#62;Get&amp;#160;Off&amp;#160;My&amp;#160;E-Lawn!&amp;#60;/title&amp;#62;
&amp;#60;/head&amp;#62;&amp;#60;body&amp;#62;
&amp;#60;h1&amp;#62;Get&amp;#160;Off&amp;#160;My&amp;#160;E-Lawn!&amp;#60;/h1&amp;#62;
&amp;#60;p&amp;#62;
I&#039;m&amp;#160;busy&amp;#160;maintaining&amp;#160;the&amp;#160;site.&amp;#160;&amp;#160;Please&amp;#160;don&#039;t&amp;#160;step&amp;#160;on&amp;#160;the&amp;#160;grass.
&amp;#60;/p&amp;#62;&amp;#60;p&amp;#62;
I&amp;#160;should&amp;#160;be&amp;#160;ready&amp;#160;for&amp;#160;visitors&amp;#160;again&amp;#160;in&amp;#160;under&amp;#160;an&amp;#160;hour.
&amp;#60;/p&amp;#62;
&amp;#60;/body&amp;#62;&amp;#60;/html&amp;#62;&lt;/div&gt;
&lt;p&gt;
We use a PHP file so that we can set the header, and so we can include a retry period for search engines.
&lt;/p&gt;&lt;p&gt;
If you&#039;re one of the few whose server allows [R=503] in the .htaccess, there&#039;s an even easier way outlined in the article details.
&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://judebert.com/progress/archives/299-Blog-Maintenance-and-the-503-Status.html#extended&quot;&gt;Continue reading &quot;Blog Maintenance and the 503 Status&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 19 Nov 2008 10:20:11 -0500</pubDate>
    <guid isPermaLink="false">http://judebert.com/progress/archives/299-guid.html</guid>
    <category>apache</category>
<category>htaccess</category>
<category>serendipity</category>

</item>

</channel>
</rss>