When using /etc/map with vanity URL, the vanity URL does not work as expected. To fix, change the priority of vanity URL over /etc/map.
- Go to http://host:port/system/console/configMgr and log in as admin.
- Find the Apache Sling Resource Resolver Factory [1] configuration.
- Check the property Vanity Path Precedence (for example, resource.resolver.vanity.precedence).
- Click Save.
This flag controls the vanity paths precedence over existing /etc/map mapping.