removed reliance on htaccess