Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将站点 X (http://example.com) 上的所有内容转发到站点 Y (http://destinationwebsite.com),但“PAGEX.aspx”除外
(http://example.com/PAGEX.aspx?callback=7259%2F7062434327_9fbc6da0cd)
这应该有效:
RewriteCond %{REQUEST_URI} !^/?PAGEX.aspx$ RewriteRule .* http://destinationwebsite.com [R=301,L]
如果您!在 RewriteRule 中添加到您的正则表达式,它将作为否定。
!