Fixing 5xx server error is very essential for your website to rank your pages in google. It is mainly happened because of your unsupported codes inside your htaccess file. Because, google will not rank your pages due to this error. As a consequences you may loose a lot of traffic for your website and of course a lot of revenues especially if you are running an affiliate marketing website. I faced the same issue for my own website and therefore, made this tutorial consists of 7 simple steps to fix this.
Step 01: Login to your google search console and click on the “coverage” tab from the left hand side. You will see an error that “Server error (5xx)” validation status failed. In this case, you have to login inside your hosting panel and under WordPress core files, you will see the file named as .htaccess file. Rename this file as .htaccess_old. And now you just need to create a blank file and name it as .htaccess.
Step 02: open newly created .htaccess file and copy and paste the following codes only. You can copy codes from here. Now save it.
Step 03: Now click on the error type followed by the bellow picture.
Step 04: Now the specific error details will have open like the bellow picture and click on the “Validate Fix” tab.
Step 05: After click on the validation tab, it will take sometime to process and it will look like the bellow picture.
Step 06: At this point you will see that, your validation has been started just like the red marked area.
Step 7: Now keep an eye on this google search console page. After next crawling, google bots will fix your error certainly.