Fixed some issues and changed the server config file

Server config file now has the correct base URL, so it doesn't append instead of redirect when using things like redirect('/postmtce')