<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Redirect to maintenance page during upgrade using .htaccess</title> <atom:link href="http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/feed/" rel="self" type="application/rss+xml" /><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/</link> <description>The place for computer tips and tricks! microsoft windows, open source, database, programming, freeware and etc</description> <lastBuildDate>Sun, 14 Mar 2010 07:29:47 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: L55</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-156309</link> <dc:creator>L55</dc:creator> <pubDate>Fri, 05 Mar 2010 17:45:54 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-156309</guid> <description>As the above poster mentioned. {REMOTE_HOST} doesn&#039;t work. It should be {REMOTE_ADDR}.{REMOTE_HOST} returns either the looked-up hostname of the request, if available, or NULL if it isn&#039;t available. It doesn&#039;t return an IP.If you do use {REMOTE_HOST}, then you will need to use a hostname as a matching condition instead of an IP, for example:RewriteCond %{REMOTE_HOST} ^badhost\.mydomain\.com$</description> <content:encoded><![CDATA[<p>As the above poster mentioned. {REMOTE_HOST} doesn&#8217;t work. It should be {REMOTE_ADDR}.</p><p>{REMOTE_HOST} returns either the looked-up hostname of the request, if available, or NULL if it isn&#8217;t available. It doesn&#8217;t return an IP.</p><p>If you do use {REMOTE_HOST}, then you will need to use a hostname as a matching condition instead of an IP, for example:</p><p>RewriteCond %{REMOTE_HOST} ^badhost\.mydomain\.com$</p> ]]></content:encoded> </item> <item><title>By: Fritsie</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-101480</link> <dc:creator>Fritsie</dc:creator> <pubDate>Fri, 03 Apr 2009 13:04:43 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-101480</guid> <description>Hi,RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888 is not working for me.After some googling i&#039;ve found a solution and I&#039;ve changed the condition to:RewriteCond %{REMOTE_ADDR} !^888\.888\.888\.888$Works perfectly now! Thanks for cooking uo the rest for me. Just what I needed.Cheers,
- Fritsie</description> <content:encoded><![CDATA[<p>Hi,</p><p>RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888 is not working for me.</p><p>After some googling i&#8217;ve found a solution and I&#8217;ve changed the condition to:</p><p>RewriteCond %{REMOTE_ADDR} !^888\.888\.888\.888$</p><p>Works perfectly now! Thanks for cooking uo the rest for me. Just what I needed.</p><p>Cheers,<br
/> - Fritsie</p> ]]></content:encoded> </item> <item><title>By: chua</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-93543</link> <dc:creator>chua</dc:creator> <pubDate>Mon, 17 Nov 2008 13:24:51 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-93543</guid> <description>u put your .htaccess at your document root (where your index.html / index.jsp located)</description> <content:encoded><![CDATA[<p>u put your .htaccess at your document root (where your index.html / index.jsp located)</p> ]]></content:encoded> </item> <item><title>By: Anand</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-92946</link> <dc:creator>Anand</dc:creator> <pubDate>Sat, 15 Nov 2008 00:15:57 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-92946</guid> <description>Hi,
The configuration look simple. Thanks for that.
I have a set up where I run Apache, Tomcat connected through mod_jk connector.
My Applicaiton is deployed on Tomcat.
Where do I have to put my .htAccess file. ? I am assuming its under application root in Tomcat.Also, If I have to switch between the maintenance mode and regular working mode, does .htAccess provide facility to do it with zero downtime. ?
If so, how do I do it. ?Thanks,
Anand</description> <content:encoded><![CDATA[<p>Hi,<br
/> The configuration look simple. Thanks for that.<br
/> I have a set up where I run Apache, Tomcat connected through mod_jk connector.<br
/> My Applicaiton is deployed on Tomcat.<br
/> Where do I have to put my .htAccess file. ? I am assuming its under application root in Tomcat.</p><p>Also, If I have to switch between the maintenance mode and regular working mode, does .htAccess provide facility to do it with zero downtime. ?<br
/> If so, how do I do it. ?</p><p>Thanks,<br
/> Anand</p> ]]></content:encoded> </item> <item><title>By: et voilà le travail</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-90850</link> <dc:creator>et voilà le travail</dc:creator> <pubDate>Tue, 04 Nov 2008 12:54:16 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-90850</guid> <description>Hi Pieter,
just add this line :RewriteCond %{REQUEST_URI} !/picturesfolder/(.*)$before the RewriteRule
dont forget to change «picturesfolder» for the one that applies for you.
you can also do it with your css folder, just add one more line.</description> <content:encoded><![CDATA[<p>Hi Pieter,<br
/> just add this line :</p><p>RewriteCond %{REQUEST_URI} !/picturesfolder/(.*)$</p><p>before the RewriteRule<br
/> dont forget to change «picturesfolder» for the one that applies for you.<br
/> you can also do it with your css folder, just add one more line.</p> ]]></content:encoded> </item> <item><title>By: Pieter</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-90400</link> <dc:creator>Pieter</dc:creator> <pubDate>Sun, 02 Nov 2008 11:30:31 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-90400</guid> <description>Hi,Thanks for this.Is there any way to exclude a directory so my maintenance page can be styled with some pictures?Best from Holland
Pieter</description> <content:encoded><![CDATA[<p>Hi,</p><p>Thanks for this.</p><p>Is there any way to exclude a directory so my maintenance page can be styled with some pictures?</p><p>Best from Holland<br
/> Pieter</p> ]]></content:encoded> </item> <item><title>By: Sam</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-85523</link> <dc:creator>Sam</dc:creator> <pubDate>Fri, 03 Oct 2008 10:30:19 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-85523</guid> <description>Thanks, this helped me out.</description> <content:encoded><![CDATA[<p>Thanks, this helped me out.</p> ]]></content:encoded> </item> <item><title>By: sogua</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-84036</link> <dc:creator>sogua</dc:creator> <pubDate>Thu, 18 Sep 2008 01:04:21 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-84036</guid> <description>Hi Aless{a}ndro: if you do not have mod_rewrite, this tutorial wont work for u.</description> <content:encoded><![CDATA[<p>Hi Aless{a}ndro: if you do not have mod_rewrite, this tutorial wont work for u.</p> ]]></content:encoded> </item> <item><title>By: Aless{a}ndro</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-42803</link> <dc:creator>Aless{a}ndro</dc:creator> <pubDate>Mon, 04 Feb 2008 17:09:11 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-42803</guid> <description>Hello, thanks for the advice.
You can get the same result without mod_rewrite ?My provider has not installed the mod_rewrite module. :(</description> <content:encoded><![CDATA[<p>Hello, thanks for the advice.<br
/> You can get the same result without mod_rewrite ?</p><p>My provider has not installed the mod_rewrite module. <img
src='http://www.techiecorner.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: JD</title><link>http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/comment-page-1/#comment-35681</link> <dc:creator>JD</dc:creator> <pubDate>Fri, 30 Nov 2007 19:17:06 +0000</pubDate> <guid
isPermaLink="false">http://www.techiecorner.com/97/redirect-to-maintenance-page-during-upgrade-using-htaccess/#comment-35681</guid> <description>This is pretty smooth.  The only issue I have with it is that 302 is maybe not really the right response code for this situation; 503 would be more correct, but RewriteRules won&#039;t let you use a 500-series code!  The only way I&#039;ve found around it is to redirect to a CGI script, where you can set your own return code, but I&#039;d rather not have to use a script.I used to use something like TC mentions - that&#039;s nice and easy too, although it does return either 404 or 200, which are not really 100% correct either.  Getting Apache to actually return a 503 for all requests turns out to be surprisingly nontrivial.  The visible effect of all these different ways is likely to be the same, but I&#039;m just looking for the &quot;philosophically correct&quot; way.</description> <content:encoded><![CDATA[<p>This is pretty smooth.  The only issue I have with it is that 302 is maybe not really the right response code for this situation; 503 would be more correct, but RewriteRules won&#8217;t let you use a 500-series code!  The only way I&#8217;ve found around it is to redirect to a CGI script, where you can set your own return code, but I&#8217;d rather not have to use a script.</p><p>I used to use something like TC mentions &#8211; that&#8217;s nice and easy too, although it does return either 404 or 200, which are not really 100% correct either.  Getting Apache to actually return a 503 for all requests turns out to be surprisingly nontrivial.  The visible effect of all these different ways is likely to be the same, but I&#8217;m just looking for the &#8220;philosophically correct&#8221; way.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 4/22 queries in 0.053 seconds using disk

Served from: host.wacity.com @ 2010-03-15 15:45:48 -->