我如何在htaccess文件标签中添加多个文件?代码bellow适用于一个文件.
<Files wp-login.php>
Order Deny,Allow
Allow from 191.211.9.1
Deny from all
</Files>
Run Code Online (Sandbox Code Playgroud)
我最终使用这个:
<filesMatch "^(wp-login|wp-file)\.php$">
Order Deny,Allow
Allow from 190.190.0.1
Deny from all
</filesMatch>
Run Code Online (Sandbox Code Playgroud)
Vyt*_*tas 12
尝试这样的事情(没有测试但应该工作):
<Files ~ "^(admin|wp-login|one-more-file)\.php$">
Run Code Online (Sandbox Code Playgroud)
或这个:
<FilesMatch "^(admin|wp-login|one-more-file)\.php$">
Run Code Online (Sandbox Code Playgroud)