Rewrite rule for xlmrpc.php not working

gilles

Active Member
#1
I added the following to my site .htaccess file but I can still access xlmrpc.php and wp-trackback.php:
Code:
# Disable xmlrpc and trackback
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/(xmlrpc|wp-trackback)\.php - [F,L,NC]
</IfModule>
What am I missing?
 

gilles

Active Member
#2
I saw other posts saying the above worked for them. The only solution that works for me is defining a new context for the above files and setting it to inaccessible.

I have not tried the vhost rewrite rules because they are disabled by Cyberpanel.

Wondering what others' experiences are with this.
 
Top