且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

对于AJAX抓取阿帕奇重写条件

更新时间:2023-09-18 23:32:28

您将需要上述使用案例的附加规则。将这一规则的您现有的规则上面

You will need an additional rule for above use case. Insert this rule above your existing rule:

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/$ [NC]
RewriteRule ^ /snapshots/index.html? [NC,L]

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.+)$ [NC]
RewriteRule ^ /snapshots/%1.html? [NC,L]