.htaccess being edited incorrectly
-
I have been getting 500 Internal server errors with some weird code being added to my .htaccess file. See below for a few examples.
I have disabled all plug ins that reference the .htaccess except this one. It appears as though it is attempted to be re-written and is just not fully being deleted or just random characters are somehow getting in there.
I have check with my web host and no malware was found and no IP other than mine has accessed my files. I am also the only one who works on the website, and crashes have happened in evenings and overnight when I am not working. Any idea what’s causing the plug in to do this?
Thanks for your help.
Examples of broken .htaccess:
—————————–
# B# 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
———————————-
# 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
s
————————————-
#<Directory /home/firstcom/firstcommercefinancial.com/html/wp-admin/>
(This was a previous line in here that would have the # deleted, i since deleted the entire line).
- The topic ‘.htaccess being edited incorrectly’ is closed to new replies.