changed the directory structure and added htaccess file