fixes #4520 Vanity URLs redirect to a directory name fail
Merge branch 'master-2.5' of github.com:dotCMS/dotCMS into master-2.5