How to write redirect with dispatcher configurations. By adding a redirect, we can map any domain to landing page for aem sites. Using virtualhosts, we can write rewrite rules for specific site. To avoid complexity, add add rewrite rules in separate file and include in virtual host.
Load mod_rewrite.so module and enable RewriteEngine before writing any rewrite rules.
https://httpd.apache.org/docs/2.4/rew...
https://httpd.apache.org/docs/2.4/rew...