<?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>Webmaster-Source &#187; htaccess</title>
	<atom:link href="https://www.webmaster-source.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Put Your Website in Maintenance Mode With .htaccess</title>
		<link>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/</link>
		<comments>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:23:16 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2587</guid>
		<description><![CDATA[Sooner or later you&#8217;ll probably run into a case where you need to put up a &#8220;maintenance mode&#8221; page while working on the site (e.g. while moving a site to a different server). What&#8217;s the best way of doing that? First you create a small, static HTML page that will appear to your visitors, then [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Sooner or later you&#8217;ll probably run into a case where you need to put up a &#8220;maintenance mode&#8221; page while working on the site (e.g. while moving a site to a different server). What&#8217;s the best way of doing that? First you create a small, static HTML page that will appear to your visitors, then you put this at the top of your .htaccess file:</p>
<pre class="brush: plain; title: ; notranslate">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/berightback\.html$
RewriteRule ^(.*)$ http://example.org/berightback.html [R=307,L]
</pre>
<p>If <em>you</em> still need to be able to access the live site while you perform the maintenance, you can add a condition permitting requests from your IP address. This line should be placed after the RewriteBase / line:</p>
<pre class="brush: plain; title: ; notranslate">RewriteCond %{REMOTE_ADDR} !^00\.000\.000\.000</pre>
<p>Be sure to replace the zeros in <code>00\.000\.000\.000</code> with the digits from your own IP address, which you can find by visiting <a href="http://www.whatismyip.com/">WhatIsMyIP.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-06-09 10:48:53 by W3 Total Cache
-->