htaccess modifications, function enhancements