Check whether the module `mod_rewrite' is loaded.
Remove `index.php' in URLs and hide files.
Set the variable `index_page' of config as blank.