简体   繁体   中英

Website giving me 500 internal server error - is it .htaccess error?

My website is giving a 500 internal server error when I click on any category header menu, but the homepage is loading fine. I did some troubleshooting, but from my understanding it narrows down to .htaccess rewrite rules.

Here is my .htaccess code, I need help with this please: My .htaccess code:

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

You can replace your .htaccess file with 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

Troubleshooting 500 internal server error

  1. Go FTP into your website
  2. Open the file named wp-config.php
  3. Find the line where you see define('WP_DEBUG', false);
  4. Change false to true and save the file

Now you check..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM