Support » Plugin: BulletProof Security » what's safe to delete in .htaccess?

  • Resolved quantaweb


    I installed BPS sometime last year and wound up uninstalling it. However,
    I just opened up my .htacess (to manually add a handful of 301s) and found that there is still BPS stuff in it – not sure why.

    However the problem is that I dont’ know what’s been added by BPS and what has to be there for WordPress to operate correctly.

    I also see that this is in the file, over 30 times!

    # END WordPress
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    If someone can tell me what can be safely removed without screwing up my site, I’d be very appreciative.

    all best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AITpro


    I assume that BPS is not installed correct? If so, go to the WordPress Settings >>> Permalinks page and click the Save Changes button. This is will generate the standard WordPress .htaccess code. Or you can delete your root .htaccess and then do the steps above.

    The duplicated .htaccess code issue/problem is either caused by another plugin that is using the WordPress flush_rewrite_rules function or is caused by the cPanel Broken HotLink Protection Tool problem.

    Thanks so much for your quick reply!

    I saved the permalinks settings but it didn’t change anything. However, deleting the .htaccess first, then saving the settings did work.

    I may re-install BPS eventually but I had a hard time configuring it and just gave up – I confess I really didn’t understand what (or how) it did or how to set it up right. I didn’t know how to fix the warnings it was giving. When I have more time maybe I’ll take another crack at it.

    Thanks again!

    all best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘what's safe to delete in .htaccess?’ is closed to new replies.