Adding .htaccess in public folder to redirect all requests to index.php except for files and folders
index.php include main.inc which includes main.config