WordPress.org

Support

Support » How-To and Troubleshooting » Redirect to 404 page when accesing w-includes?

Redirect to 404 page when accesing w-includes?

  • MarceFX
    Participant

    @marcefx

    Hi,

    I don’t want people going through my /wp-includes directory, so I’m using this rules on my .htaccess:

    Options -Indexes

    When someone tries to access mysite.com/wp-includes, he get the “403 Forbidden” server message. Is there any way to redirect the user to a regular 404 page without messing anything up on the WordPress installation?

    Thanks!

  • The topic ‘Redirect to 404 page when accesing w-includes?’ is closed to new replies.