Added ability to remove 'www' from URLs with middleware