Migrating PuTTY

Transferring your PuTTY settings to another computer turns out to be surprisingly easy. Simply run this command to extract the settings.


regedit /ea settings.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY

Transfer the file this creates to your new machine. There double-click on the file to merge your settings into your new installation.

.htaccess Under Construction

Maybe your site needs to undergo maintenance, or you want to put up a placeholder page while you build a new website. Whatever the reason here is a great way to implement it using your web server’s .htaccess file.

First you should create your temporary page. Make note of any outside images or files that you link to as you will need to add an exception for them later. Finally modify and merge the following code into your root directories .htaccess file. Replace the X’s with your IP address and include any auxiliary files you may need.


# Turn on mod_rewrite
RewriteEngine On
# If not your IP address
RewriteCond %{REMOTE_ADDR} !^XX\.XX\.XX\.XX
# and not the temporary page and logo
RewriteCond %{REQUEST_URI} !^/construction\.
RewriteCond %{REQUEST_URI} !^/images/logo.gif
# redirect to under construction
RewriteRule /*$ /construction.html [L]