1
如何在像這樣的規則中訪問匹配的變量?我可以在htaccess RewriteCond中獲得匹配的變量嗎?
RewriteCond %{HTTP_REFERER} ^http://example\.com/dir[0-9]/?(.*)?$
RewriteRule ^images/(.*)$ other_dir(MATCHED_STRING)/images/$1 [L]
我想的網址:http://example.com/dir1 其所有圖像重定向到/ other_dir1 /圖像/ $ 1
tnx man,that worked – Antagonist