我試圖將一堆支持文件重定向到不同的支持系統,除了其中包含文件夾software_updates
的任何文件。以下是我寫的規則。收集htaccess重定向中的特定文件夾
RewriteRule ^/support/.*(?!software_updates).*$ newurl_location [NC,L,R=301]
這排除/support/software_updates/
但不/support/product/software_updates
我試着去排除在支持後的URL的任何地方有任何software_updates URL。
嘿rocketdoctor,這個問題解決了,還是你還在努力呢? – zx81