• Resolved morris4ever69

    (@morris4ever69)


    I upgraded the plugin to the 4.6.4 version and everything seems to work properly but I checked my htaccess file and I found that the WordPress rules between the relative comments (# BEGIN WordPress and # END WordPress) are repeated 3 times.

    Is it safe to remove the duplicates by editing manually the htaccess file?

    Another thing. If I want to add some custom rules to the htaccess, for example to block some IP addresses, I receive a 500 internal error on the website. How I can implement such rules?

    I tried to put in this:

    <Limit GET POST>
    order allow,deny
    deny from 123.456.78.9
    deny from 987.654.32.1
    allow from all
    </Limit>

    after all the rules (iTS and WordPress)

    Thanks for any suggestion.

    https://www.ads-software.com/plugins/better-wp-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morris4ever69

    (@morris4ever69)

    I’m sorry for the second part of my previous request… the reason is that the sample IPs are not valid IPs.

    Remains the first part of my message, I would like to be sure if it’s safe to remove the duplicates… Thanks.

    Yes, it is safe to remove the duplicates.

    If this answers your question please mark this topic as “Resolved”.

    dwinden

    Thread Starter morris4ever69

    (@morris4ever69)

    Ok, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htaccess file with duplicate WordPress lines’ is closed to new replies.