• Hi,

    I have a “500 Internal Server Error” everyday and I was wondering if you can help me with this issue.

    So every time I get this issue, I just modify the file “.htaccess” which I think is the source of my problem 🙁

    Here is how my htaccess looks like before I modify it:

    # BEGIN iThemes Security
    #Quick ban IP. Will be updated on next formal rules save.
    SetEnvIF REMOTE_ADDR “^110\.85\.75\.214$” DenyAccess
    SetEnvIF X-FORWARDED-FOR “^110\.85\.75\.214$” DenyAccess
    SetEnvIF X-CLUSTER-CLIENT-IP “^110\.85\.75\.214$” DenyAccess
    order allow,deny

    # 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
    Cond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    So every time I have this problem, I just edit this file and then the website works!

    So eevryday, I modify my htaccess file with this code:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I found this solution here : https://wordpress.org/support/topic/500-internal-server-error-on-all-wp-pages?replies=7

    Do you know why my htaccess file is still automatically modified?

    Thanks for your help!

Viewing 1 replies (of 1 total)
  • Thread Starter Untouchable

    (@untouchable)

    I have also the following error logs:

    /home/********/public_html/mysite.com/.htaccess: </IfModule> without matching <IfModule> section

Viewing 1 replies (of 1 total)

The topic ‘500 Internal Server Error error’ is closed to new replies.