Pakistan Independence Day 2014

2017-09-03T09:27:48+00:00 August 14th, 2014|General|

Independence Day is observed every year on 14th August in Pakistan. Recalling the historical day of 14th August 1947, when Pakistan was declared as independent state in the world, following the end of British Raj. This was all made possible by struggles of Muslims living in the region. They run a movement called Pakistan Movement [...]

40th birthday of the Rubik’s Cube

2017-09-03T09:30:53+00:00 May 19th, 2014|General|

Today is the 40th birthday of the Rubik's Cube and Google celebrate it in the most joyous form. See the google doodle, celebrating the birthday. Even anyone can play it to solve the puzzle. And to read the story behind this interactive Rubik's Cube displaying on Google doodle, see this link: http://www.creativebloq.com/netmag/googles-interactive-doodle-real-puzzler-51411718

PHP 301 redirect for non-www to www urls

2017-09-03T11:38:16+00:00 April 19th, 2014|PHP, Programming|

Want to do a 301 redirect for non-www urls to www, simply use php header command like the following syntax: [php]<?php if ($_SERVER['HTTP_HOST'] != 'www.abc.com'){ header("HTTP/1.1 301 Moved Permanently", true, 301); header("Location: http://www.abc.com".$_SERVER['REQUEST_URI']); } ?>[/php] And for www to non-www: [php]<?php if ($_SERVER['HTTP_HOST'] != 'abc.com'){ header("HTTP/1.1 301 Moved Permanently", true, 301); header("Location: http://abc.com".$_SERVER['REQUEST_URI']); } ?>[/php] [...]

Load More Posts