• Hi, I have my site theleavenworthbassclub.org hosted with Godaddy. Lately I have been getting error 500 crashes and I have to go into my CP and delete the HTACESS file. WordPress then creates a new file and the site comes back up. What seems to be happening is the first three lines get merged and the file is corrupted. Below is the good file code and the next is how the file gets changed. I don’t know where to take this to get it resolved. This site has been up and running for over a year without any issues until the last couple of weeks. Any help or guidance would be appreciated.

    Good file

    # 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

    Bad file:

    # 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

    As you can see the first 3 lines get merged into one line and the site goes down. There hasn’t been any changes to the site except Any ideas.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Change the filer permissions on .htaccess to 600 and see if that helps. But … Have you asked GoDaddy to see what’s changing the files?

    Thread Starter Fe fanatic

    (@fe-fanatic)

    Godaddy claims that WordPress is a third party software package and they don’t support it. The tech support wasn’t much helpful. I am disabling some plugins to see if there is a compatibility issues with the new versions.

    Not sure if it would help, and it basically shouldn’t happen, but perhaps try to add a comment in between, like this:

    # 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

    500 Server Error is GODADDY based. I use AWARDSPACE and I got this today. I asked them for support and they did it for me. They did it in 5 minutes after I submitted the request. Their support is 😀

    Thread Starter Fe fanatic

    (@fe-fanatic)

    I tried changing permissions. I got a forbidden error. As far as Godaddy is concerned. Yes, they did help me with getting the site back up deleting the htaccess file. Something I had been doing anyway. They won’t help to find out why it’s happening. It has happened again this morning around 1am. Right now I am current with all WordPress updates.

    Do you have any security plugins in place. If so check as these will make changes to your htaccess file if allowed. Usually requires adjusting your settings in the Security plugin.

    Thread Starter Fe fanatic

    (@fe-fanatic)

    Update: I disabled write permissions to the file a week ago and it has not been altered since. I haven’t seen any issues with website updates so I will keep it as is for now. I still don’t understand what was changing the file but this seems to stopped the problem. Thanks for the responses and help.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Site keeps crashing with 500 error code.’ is closed to new replies.