• This happens when I save a page I’m editing. I get an Internal Server Error and when I check my logs…

    [Tue Jun 26 11:01:48 2007] [alert] [client 165.21.154.108] /home/aentan/aendirect.com/.htaccess: </IfModule># without matching <IfModule># section, referer: https://aendirect.com/wp-admin/page.php?action=edit&post=202

    I re-upload my .htaccess and it’s good until I save a page again. According to Dreamhost support, something somewhere is deciding to re-write the .htaccess.

    I have tried re-installing WP2.2.1 but it doesn’t resolev the problem. I thought I might find some answers here while Dreamhost helps me out as well. Anyone facing such a problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    WordPress rewrites the .htaccess file all the time. But what are you putting in the .htaccess file that breaks it?

    WordPress will only change the text inside the begin and end lines that it adds. So you should not change what it adds, for any reason whatsoever, because it’ll break when WordPress changes it later.

    WordPress’s rules look similar to these:

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

    And yes, even the BEGIN and END lines must stay there, unaltered.

    Thread Starter Aen

    (@aen)

    Seems like a server issue. Dreamhost couldn’t see anythinh wrong it and then it fixed itself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress changing .htaccess when saving a page’ is closed to new replies.