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
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 withphpinfo();
and search forerror_log
, it will give you the path.For the best error logging experience, set
error_reporting
to -1, turndisplay_errors
off, and set a customerror_log
. Then in the terminal, typetail -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!