I’ve setup .htaccess rules for webmail.domain.ltd so that it redirect to domain.ltd/snappmail,
the redirect rules works but instead of launching snappmail it access the wordpress site which installed the root dir of the domain.
### Rewrite Rules Added by CyberPanel Rewrite Rule Generator
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
### End CyberPanel Generated Rules.
RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ https://domain.ltd/snappymail? [R=301,L,NC]
How to fix this issue please