• Resolved Asif

    (@asif_rn)


    Hi,

    While checking my .htaccess file I came across these values added by the Wordfence plugin in:

    # Wordfence WAF
    <IfModule LiteSpeed>
    	php_value auto_prepend_file '/home/u864865843/domains/xyz.com/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    	php_value auto_prepend_file '/home/u864865843/domains/xyz.com/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    I’m using LiteSpeed plugin and not sure if these are duplicate rules. Should I keep both or remove one but which one?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfmargaret

    (@wfmargaret)

    Hi @asif_rn,

    The LiteSpeed module is used for LiteSpeed-specific servers, where lsapi_module is an Apache module for using LiteSpeed’s PHP API with Apache.  Depending on your specific server configuration, only one of these prepends is used.  If you’re familiar with your server’s setup, it is safe to remove the entry for the unused module.  We do recommend leaving both active, as there is no harm in leaving both entries in the .htaccess, and should you need to move the site to a new server in the future you may need to use a different module to load the prepend.

    Thanks,
    Margaret

    Thread Starter Asif

    (@asif_rn)

    @wfmargaret

    Thank you for clarifying this, I’ll leave it as is then.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate rules’ is closed to new replies.