Fix bugs with disabled mod_rewrite and .htaccess