I forgot to enable AllowOverride option to ALL in apache config file. As a reason .htaccess rewrite rules were not working. Now it’s working fine.