• I just migrated a WP site from an addon domain to a cpanel account on a new server. I started the .htaccess file fresh, and see the old one has the following code in it, and I’m unsure if I should place this in my new htaccess.

    Can someone tell me what this does and if it’s important?

    ErrorDocument 416 "Requested Range Not Satisfiable"
    RewriteCond %{REQUEST_URI} ^/xmlrpc\.php$
    RewriteCond %{HTTP_USER_AGENT} ^$|WinHttp.WinHttpRequest
    RewriteRule .* - [R=416,L]

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s basically a security definition to block access to your sits xmlrpc.php file. A lot of security plugins will add in something like that, so that’s the most likely place that it’s come from.

    It’s really up to you if you want to leave it in or not, but if your site was working fine with it there before it’s probably a good idea to keep it there now as well.

    Thread Starter slobizman

    (@slobizman)

    Thank you very much for replying!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What does this htaccess code mean?’ is closed to new replies.