added base_url switch statement to settings php