Apache Mod_重写忽略条件

Apache Mod_重写忽略条件,apache,.htaccess,mod-rewrite,Apache,.htaccess,Mod Rewrite,Apache似乎忽略了以下条件。我试图确保,如果请求URI中包含单词sitemap,则不执行重写规则。例如: 或 RewriteCond%{HTTP|u USER|u AGENT}googlebot | google结构化数据测试工具| semrushbot | applebot | bingbot | yandex | baiduspider | ahrefsbot | facebookexternalhit | twitterbot | rogerbot | linkedinbot |嵌入

Apache似乎忽略了以下条件。我试图确保,如果请求URI中包含单词sitemap,则不执行重写规则。例如:


RewriteCond%{HTTP|u USER|u AGENT}googlebot | google结构化数据测试工具| semrushbot | applebot | bingbot | yandex | baiduspider | ahrefsbot | facebookexternalhit | twitterbot | rogerbot | linkedinbot |嵌入| quora\link\preview | showyoubot
重写cond%{QUERY\u STRING}\u转义\u片段_
(3.js | |;;今年124;;;;今年|;;今年|;今年|不那么|今年|;目前|{{请求uuU URI{{请求{请求uuuuuuURI}}目前目前的一一名名名::::::::::::::::::::::::{请请请请请请请请请请请请请请请请请请重写重写:::{{{{{{{{{{{请求的一一一一一一名名名名名名名名名名名名名名名名名名名学生学生学生学生学生学生学生学生学生学生学生们们们们们的请求的一一一一一一一一一方方方目前目前目前目前目前目前目前的一名名名名名名tif| \.wav \.mov \.psd \.ai \.xls \.mp4 \.m4a \.swf \.dat \.dmg \.iso \.flv \.m4v \.torrent \.ttf \.woff \.svg))
重写cond%{REQUEST_URI}^/网站地图(/|$)
重写规则^(index\.html | index\.php)?(*)https://service.prerender.io/%{REQUEST_SCHEME}://%{HTTP_HOST}/$2[P,L]
Apache似乎忽略了这一点,并执行代理请求。有什么想法吗?

好吧,我的错:

RewriteCond %{REQUEST_URI} !^/sitemap(/|$)
应该是:

RewriteCond %{REQUEST_URI} !^sitemap
RewriteCond %{REQUEST_URI} !^sitemap