首页 > 解决方案 > apache重写规则中的-d标志是什么?

问题描述

我在这里检查过: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

而且我无法弄清楚 '-d' 标志在 apache 重写规则中的用途。

前片段: RewriteCond %{REQUEST_FILENAME} !-d

有人可以为我照亮这个吗?感谢您的任何和所有解释和答案!:-)

标签: apache

解决方案


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

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

:-)


推荐阅读