Wordpress check with 500 error

66 views Asked by At

I am new in wordpress and my site is down. After lots of research I get to know there may be some syntax error.

Can you please help to find is there any syntax error in code or not

My code

# 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
1

There are 1 answers

9
delboy1978uk On BEST ANSWER

An HTML 500 response code is a server error. The first thing you should do is check your error_log to find out what the error is. Look at a page with phpinfo(); and search for error_log, it will give you the path.

For the best error logging experience, set error_reporting to -1, turn display_errors off, and set a custom error_log. Then in the terminal, type tail -f /path/to/error_log. Your notices, warnings and errors will now scroll past in real time, without distorting your web page's display.

Once you have the error message, update your question or leave a comment on this answer and we will take it forward!