【发布时间】:2018-02-20 03:57:55
【问题描述】:
我正在尝试将所有请求的 url 从域强制到自定义 410 错误页面。我正在使用以下规则,但它并没有捕获所有内容。我需要它来捕获所有文件夹、.html、.php 和 jpgs 等...
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !^index\.html$ index.html [L,R=410]
ErrorDocument 410 /error-410.php
有人可以帮忙吗?干杯
【问题讨论】: