Go to system -> configuration and click on the option (sidebar menu) “Web” under the main category “general”
Then enable ” Use Web Server Rewrites “ to yes .
<?php
get_year_link( $year );
?>
<?php
get_month_link( $year, $month );
?>
<?php
echo get_day_link(2010, 6, 20);
?>
<?php
if (!preg_match("/^(http(s?)://|ftp://{1})
((w+.){1,})w{2,}$/i", $websitrAddres))
$errorList[]="Invalid Website address. ' ";
?>