.htacess redirect from subdomain to full URL

Sometimes, Google or other search engines start to crawl your subdomains, indexing everything without your knowledge. And your search results start to appear something like this – http://subdomain.mainsite.com/page.html, instead of http://mainsite.com/page.html. All paths to pages are same except the subdomain added to the URL. To redirect all your subdomains to main site URL, add following line in your .htaccess file. [cc lang=”htaccess”] RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?[^.]+.mymainsitename.com.*$ RewriteRule (.*) http://mymainsitename.com/$1 [L] [/cc]

Cydia Crashes right after Jailbreak iPhone

Cydia starts to crash right after you Jailbreak your iPhone. You know it’s not 3rd party corrupted repositories or updates, it’s core Cydia file that is corrupt or missing. I tried installing Cydia again with blackra1n and redsn0w, but it failed every-time. To solve this problem, you will need some folder manager. iFile, or open SSH would do that trick, but since Cydia is crashing after the moment you jailbreak, I am sure you didn’t get chance to install those apps in your iPhone.

Setting up Facebook Application for Localhost

Sometimes we may need to test some facebook scripts in localhost environment, all you need to do is create your localhost facebook application just like any other application you’ve created.

Organizing Gmail With Filters & Labels

Since there’s no such thing called “folder” in Gmail, many Gmail users often wonder how to save their important emails, using filters aren’t the first choice, because most of them do not know about it, others do not bother. So they keep their emails just the way they are “in Inbox”.  Sometimes we have to mass delete old email, and accidently important emails also get delete, but fortunately Gmail moves deleted mails into Trash and can be retrieved within 30 days.  But sometimes it becomes too late and important mails are lost forever. So as they say, it is better safe than sorry…