make rewrite config part optional

this allows nginx for purely frontend sites, where there is no index.php, but just index.html