用SSI语句检测query string包含某些文字:
1 2 3 4 5 6 7 | <!--#if expr="$QUERY_STRING = /not_subscribed/"--> You are not subscribed <!--#elif expr="$QUERY_STRING = /error/"--> Something went booboo... <!--#else --> You are no longer part of this mail list. <!--#endif--> |
For more on Apache’s SSI handling of if/else statements, check out this page:
http://httpd.apache.org/docs/1.3/mod/mod_include.html
…or the page’s updated version for Apache 2:
http://httpd.apache.org/docs/2.0/mod/mod_include.html
这是一篇转载文章,文章来源:
http://globalmoxie.com/ask/default.php?bigmed.1.3969.1