February, 2010Archive for

Migrating your IMAP mail? Here’s how!

For those of you who are changing their IMAP email account to a different server, there is a very nice utility called imapsync. The utility is actually written in PERL so it can run on any number of hosts that support PERL scripting, and while it has many config options, here is the actual command we used to transfer an email account from our server to Google Apps Mail account(GMail is the same) from a Linux box: The command imapsync \ --host1 thinkovi.com --user1 email@thinkovi.com --pa...

Redirecting url with a rewrite rule

Lets suppose you have made some changes to your website and you want to redirect some pages to their new url format, this .htaccess rewrite rule might come in handy: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)subpage1/subpage2/mypage.html$ RewriteCond %{QUERY_STRING} Itemid=91&page=mypage$ RewriteRule ^(.*)$ http://mynewurl.com/index.php?mypage=new What the above condition does is redirect /subpage1/subpage2/mypage.html?Itemid=91&page=mypage url to http://mynewurl.com/index.ph...