Hi @Mahesh_Gunaje
1.Dispatcher Cache:
The Apache dispatcher often caches responses to improve performance. When you add or modify Vanity URLs, the dispatcher cache might need to be refreshed to reflect these changes. Restarting the Apache server is one way to clear the cache.
2.Dispatcher Configuration:
Ensure that your dispatcher configuration is set up correctly. Verify that the /vanity_urls section in your dispatcher configuration is accurately pointing to the vanity URL configuration file, and that the dispatcher is configured to read this file.
Cache Invalidation:
Instead of restarting the entire Apache server, consider using cache invalidation mechanisms provided by the dispatcher. You may have the option to selectively invalidate the cache for specific URLs or paths, avoiding the need for a full server restart.
3.Dispatcher Flush Agent:
AEM provides a mechanism for flushing dispatcher caches using the Flush agent. You can configure the Dispatcher Flush agent in AEM to clear the cache for specific pages or paths when changes are made. Ensure that the Flush agent is set up and working properly.