HTACCESS security code need help urgent

  • Author
    Posts
  • #2852139

    necdetemre
    Member

    Hi,
    I’m trying to add the code below to my .htaccess file to make it more secure according to the article I read on wpmudev.org. However, I’m not sure what it means by path-to-your-site. I’m sure it doesn’t mean the domain but what does it mean and how do I find it?

    ErrorDocument 401 /path-to-your-site/index.php?error=404
    ErrorDocument 403 /path-to-your-site/index.php?error=404
    
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{HTTP_REFERER} !^http://(.*)?your-site.com [NC]
    RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
    RewriteRule ^(.*)$ - [F]
    </IfModule>

    Thank you.
    Regards,
    Emre

The topic ‘HTACCESS security code need help urgent’ is closed to new replies.