When site1.com is requested the content is loaded from the required document root e.g site1.com -> /home/user/public_html/site1. However, if site1.com/events is requested content is attempted to be loaded from the mainsite directory instead of as per the rewrite rule in home/user/public_html/site1