Apache重写规则中的-d标志是什么?

时间:2018-06-25 18:16:27

标签: apache

我在这里检查过:https://serverfault.com/questions/214512/redirect-change-urls-or-redirect-http-to-https-in-apache-everything-you-ever

此处:http://httpd.apache.org/docs/current/rewrite/flags.html

而且我无法弄清楚apache重写规则中的'-d'标志是什么。

前摘要: RewriteCond %{REQUEST_FILENAME} !-d

有人可以为我照亮我吗?感谢您的所有解释和答复! :-)

1 个答案:

答案 0 :(得分:0)

很明显,这是一种“接近绘画”的事情,因为我错过了文档中的标志。

  -d
Is directory.
Treats the TestString as a pathname and tests whether or not it exists, and is a directory.

:-)