Fixed some issues related to installing AllianceCMS on a subdomain