Update and test your site while visitors are redirected to the page of your choice:
order deny,allow deny from all allow from 184.108.40.206 ErrorDocument 403 /page.html <Files page.html> allow from all </Files>
Replace 220.127.116.11 with your IP address. Also replace page.html with the name of the page you want visitors to see.Full Detail
SetEnv TZ America/Chicago
This will allow PHP to out put your current time instead of the server's time.
List of Timezones: http://us2.php.net/manual/en/timezones.php
Apache web servers has a great way to manipulate information using .htaccess files. .htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. The .htaccess file is placed inside the web tree, and is able to override a subset of the server’s global configuration; the extent of this subset is defined by the web server administrator. The original purpose of .htaccess was to allow per-directory access control (e.g. requiring a password to access the content), hence the name. Nowadays .htaccess can override many other configuration settings, mostly related to content control, e.g. content type and character set, CGI handlers, etc.Full Detail
Htaccess is a very ancient configuration file that controls the Web Server running your website, and is one of the most powerful configuration files you will ever come across. .htaccess has the ability to control access of the WWW's HyperText Transfer Protocol (HTTP) using Password Protection, 301 Redirects, rewrites, and much much more. This is because this configuration file was coded in the earliest days of the web (HTTP), for one of the first Web Servers ever! Eventually these Web Servers (configured with htaccess) became known as the World Wide Web, and eventually grew into the Internet we use today.
This is not an introduction to .htaccess… This is the evolution of the best of the best. You've come to the right place if you are looking to acquire mad skills for using .htaccess files. Originally (2003) this guide was known in certain hacker circles and hidden corners of the net as an ultimate .htaccess due to the powerful htaccess tricks and tips to bypass security on a webhost, and also because many of the tricks and examples were pretty impressive back then in that group.Read More