refactored config, global, and htaccess files