Forum Moderators: phranque
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule http://localhost/offline.php http://www.example.com/
http://www.example.com/dir1/
http://www.example.com/dir/?parameter=value
etc. http://www.example.com/offline.php Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^(.+)$ http://localhost/offline.php [R,L] Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule !^offline\.php$ http://localhost/offline.php [R=302,L]