title: When I enter wordpress https://example.com/wp-comments-post.php, I get a http 405 error. 404 redirect does not occur
body: <p>I am using WordPress. When I try to go to the <code>https://example.com/wp-comments-post.php</code> page I get an HTTP 405 error. I added a 404 redirect code to the <code>.htaccess</code> file for the 405 error.</p>
  <pre><code>ErrorDocument 405 https://example.com/404/
  </code></pre>
  <p>However, I'm still seeing a 405 error.  I looked at the link and there is https,  not http.  I made a 404 redirect for this filename.  Redirected to 404 page, but this time I can't comment.</p>
  <pre><code>&lt;files wp-comments-post.php &gt; 
  order allow,deny 
  deny from all
  &lt;/files&gt;
  </code></pre>
  <p>I want to make a 404 redirect when someone enters this page. I also want to send comments without any problems.</p>
  <p>What can I do for it?</p>