made some changes to the htaccess and global constants