Enable mod_rewrite in apache2.2 sudo a2enmod rewrite Which support .htaccess files. Using phpinfo(), to search "mod_rewrite" is enabled or not.