### 系统生成请勿手动修改: 关闭网站前台 Begin ### RewriteEngine On # 默认首页响应自定义文件内容并响应200状态码 # RewriteRule ^index.html$ my_custom_403_page.html [L] # 匹配以 .html 结尾的请求 RewriteCond %{REQUEST_URI} \.html$ [NC] # 检查请求的文件是不是index.php、api.php RewriteCond %{REQUEST_FILENAME} !index.php RewriteCond %{REQUEST_FILENAME} !api.php RewriteCond %{REQUEST_FILENAME} !close.php # 检查请求的文件是否真实存在 RewriteCond %{REQUEST_FILENAME} -f # 检查是否存在名为 "example_cookie" 的 Cookie,其值必须为 "expected_value" RewriteCond %{HTTP_COOKIE} !90CfBI_website_login=Y(;|$) [NC] # 如果上述四个条件都满足(即请求以 .html 结尾 请求文件不是index.php或api.php 文件真实存在 且 Cookie 不符合条件) # 则返回 自定义4页面 RewriteRule ^.*$ close.php [L] ### 系统生成请勿手动修改: 关闭网站前台 End ###