• Resolved judetheobscure

    (@judetheobscure)


    I’ve got a whole bunch of code in my htaccess file which I’m wondering if it is redundant as it consists mostly of multiple copies of this:

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

    I’ve put the entire code in a pastebin here: https://pastebin.com/K0E9LLme

    It *seems* to have been put there by the BulletProof Security plug-in which I uninstalled about two years ago.
    Is it safe to remove it – all or part of it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    – what you posted above is the permalink rewrite code

    – You need only ONE copy of this code in your .htaccess if you are using permalinks.

    Thread Starter judetheobscure

    (@judetheobscure)

    Thank you ??

    I am using permalinks so just keep this

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

    and get rid of all the rest.

    Moderator t-p

    (@t-p)

    yes ??

    Thread Starter judetheobscure

    (@judetheobscure)

    Thanks again – I am feeling confident now ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redundant htaccess code??’ is closed to new replies.