fix problems after removing index.php from url