[英].htaccess redirect to placeholder image for all images in a folder
對於服務器收到的針對特定文件夾中圖像的每個請求,我需要提供一個占位符圖像。
因此-每次提出以下要求:
www.mysite.com/siteimage/scale/480/800/****/
我希望服務器可以服務:
www.mysite.com/wp-content/themes/mytheme/img/placeholder.png
這可能嗎?
謝謝
將此規則作為您的第一個規則插入RewriteBase
行下面:
RewriteRule ^siteimage/scale/480/800/ /wp-content/themes/mytheme/img/placeholder.png [L,NC,R=302]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.