In this article, I'll illustrate how to configure OSGi to root-map from /projects.html (default) to /welcome.html in #AEM6. When you freshly installed an #AEM6 and logged into author instance, you will land on the /projects.html page, Some might prefer to land on the /welcome.html page,
How to do that?
Add /apps/myproject/config.author/com.day.cq.commons.servlets.RootMappingServlet.config.xml, and add the XML codes in the Code Fragment 1 below to the com.day.cq.commons.servlets.RootMappingServlet.config.xml file.
Code Fragment
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
rootmapping.target="/welcome.html"/>