• This is the standard htaccess code:

    # BEGIN wordpress
    <ifmodule mod_rewrite.c>
    rewriteEngine On
    rewriteBase /
    rewriteCond %{REQUEST_FILENAME}!-f
    rewriteCond %{REQUEST_FILENAME}!-d
    rewriteRule . /index.php [L]
    </ifmodule>
    # END wordpress

    And this is mine:

    # 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

    Can you see the difference? There’s one line in there in my version that’s added. It’s this one: RewriteRule ^index\.php$ – [L]

    Is this due to my “Pretty Permalink” structure that I’ve set withing my Dashboard Setting? If not, why is this line here?

    Anyway, my problem is that about once per day, my htaccess code rewrites automatically and tosses my site into a 500 error.

    I read this article which states that nothing custom should be written after the # BEGIN bit. So, is it just that simple? Bove that one line of code above the # BEGIN, or is it something else?

    I think is causing an inordinate number of 404 Errors, too, as both problems began at the same time.

    Can anyone out there help me get this frustrating issue back on track? Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • tnwinn

    (@tnwinn)

    I am having the exact same problem with my site! (gogo-gringo.com)

    A few weeks ago, I would get an internal 500 error and look in my .htaccess file and see that after the END there would be just one ‘s’ or sometimes two ‘ss’

    # END WordPress
    s

    Today, though, it went down and I looked and my file had been repeating itself .. it had what you wrote above, only about 150 times.

    What plugins (if any) are you currently using?

    tnwinn

    (@tnwinn)

    trickadee

    (@trickadee)

    I’m having the same issue. About once a day my site goes down. I rewrite the .htaccess file to be this:

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

    and 24 hours later, the .htaccess file looks like this:

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

    What can I do to stop this happening?

    trickadee

    (@trickadee)

    The bad code didn’t print properly. It’s basically the same thing over and over again with ‘nul’ characters splashed throughout it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘htaccess Rewrite Giving 500 Errors’ is closed to new replies.