• Dangthrimble

    (@dangthrimble)


    My .htaccess file changed overnight; the change occurred between # BEGIN WordPress and # END WordPress. As far as I am aware, I am the only one with access to that file, other than the hosting company who advise they “never make any changes to the internal files of any customer’s website”.

    The change was from:

    # 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]
    </IfModule>
    
    # END WordPress

    to:

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

    Can anyone advise what impact that change will have and whether I need to be concerned?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • hawkeye126

    (@hawkeye126)

    <IfModule mod_rewrite.c> this checks if mod_rewrite.c is activated on your server. I would think you’d want to put these tags back.

    Are you using any security plugins that may have write permissions on the file?

    Does the site work with both versions of the .htaccess?

    Thread Starter Dangthrimble

    (@dangthrimble)

    I have not noticed any difference.

    What type of security plugins do you have in mind?

    Interestingly (maybe!), this change occurred during a period when someone was trying to log in to an admin account.

    hawkeye126

    (@hawkeye126)

    after a little more digging I found that the tags may be unneeded, redundant, and may be more of a ‘style thing’:

    https://stackoverflow.com/questions/3323311/are-ifmodule-mod-rewrite-tags-redundant-in-htaccess-mod-rewrite-files

    Hope this helps, I think I’m going to play it safe and keep my <IfModule> tags tho!

    Thread Starter Dangthrimble

    (@dangthrimble)

    Cheers. Still intrigued to know what caused the file to change, though!

    hawkeye126

    (@hawkeye126)

    me too, that’s above my skill level as of now tho. Hopefully a moderator will know, I’ll be watching. Good luck to you on your site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change to .htaccess’ is closed to new replies.