To achieve the desired masking of servlet URLs using Apache's mod_rewrite module, you can modify your rewrite rules as follows:# Path based maskingRewriteRule ^/api/v1/(.*)$ /bin/test/v1/$1?type=page [QSA,PT,L]# Resource based maskingRewriteRule ^/mask\.(.*)$ /content/test/servlets/fruits.$1 [QSA,PT...