如何检查某些外部文件中是否存在 url。
只需检查给定的请求 URI 是否在虚 url 列表中。
虚 url 的文件存在于 /mnt/var/www/html/vanity_urls.txt
RewriteCond ${vanityurls:%{REQUEST_URI}|NONE} ^(.+)$
RewriteCond ${vanityurls:$1} >""
RewriteRule ^/(.*)$ /$1 [PT,L]```
Map filename contains same key value pair just for loading purpose to map . My use case is simply to check given request url is a vanity url or not.
Example - /clinicaltrials /clinicaltrials