• Every so often, started out about once a week – now it is more like every 24 hours – my website goes down (500 internal server error) due to a problem in the .htaccess file. Once I rename the file and allow WordPress to write a new one, everything is just fine.

    Finally, today, I decided to investigate this problem further (please excuse my laziness!). The difference between the old (non-functioning) .htaccess file and the new file is simply an “s” at the bottom of the text.

    It looks like this:

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

    Yesterday, I updated all my plug-ins and it still happened today. Today, I’ve deactivated all my plug-ins (except for WordPress.com stats & Akismet – although, if you think I should scrap those too, I will) and I’m waiting to see if that works.

    In the meantime, any idea what I should be looking for that might cause this simple but disastrous problem?

    Here’s my URL: http://www.handmadeinpa.net and it’s running 2.8.6

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Update the htaccess file as it should be, then change the write permissions on that file (644 should be fine). Should only need write access when changing/updating permalinks etc…

    WP can’t write to a file it doesn’t have permission to…

    If the changes still occur after a permission change then it’s not WordPress making the changes.

    Thread Starter lolasmum

    (@lolasmum)

    yuck – it’s at 644 already.

    i’ll start looking elsewhere… but any ideas as to what i should look for that could be creating this problem?

    Sorry, 644 is fine for WordPress to still write to the file (that’s what the 6 in 644 means)

    Set permissions lower, see if the problem occurs again. If they do, then it’s not WordPress, if they don’t then it must be WordPress, and i’ve no idea why it would add a random “s”, perhaps you typed a few keys by mistake when looking at a file? .. (all i can think of right now)..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘something is writing to my htaccess file’ is closed to new replies.