I'm using wordpress, now. And today I find out that my xmlrpc.php file is enabled. Now, I want disable it. But what I do below does't work
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
Actually, all *.php files won't work using this way. But, if the files don't end with .php, it works
<Files "test.txt">
Order Deny,Allow
Deny from all
</Files>
this is my .htaccess file , and I try write it in httpd.conf too, same result
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
</Files>
<Files "php_test.php">
Order Deny,Allow
Deny from all
</Files>
<Files "test.txt">
Order Deny,Allow
Deny from all
</Files>
I got this when I visit test.txt in my server. But the php_test.php I got this picture
I have tried many ways to slove this , now I need help , thank you guys