Question

Website is Crashed showing 500 internal server error

Posted August 18, 2018 1.7k views
WordPress

Hello,

I hope you can help me I’ve tried everything for the last couple of hours and nothing work out. So the background is like this, I made a change to htaccess to weed out some referral spammer. Initially, I used this code

RewriteEngine on
RewriteCond %{HTTPREFERER} semalt.com [NC]
RewriteCond %{HTTP
REFERER} buttons-for-website.com [NC]
RewriteRule .* – [F]

and it worked just fine, until i change the RewriteCond to the following code:

RewriteCond %{HTTP_REFERER} example.com [NC,OR]

the website started to crash,

I had made a change back to the original version but the website still crashed down and showing 500 internal error. I thought the problem was in Wt3 total cache plugin, so I deleted it through Filezilla, and change the htaccess by removing all Wt3 total cache line but nothing worked out.

I’d tried to delete the .htaccess from file server, through this method I can access the front page, but I can’t access individual posts or wordpress dashboard. So I returned the .htaccess file again.

I hope someone here can help me out,

Thanks a lot

P.S.Still no response from digitalocean customer service

this the last error.log file that I got :
[Fri Aug 17 23:28:41.732951 2018] [core:alert] [pid 6707] [client 24.2.212.234:60874] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:28:41.799493 2018] [core:alert] [pid 7532] [client 24.2.212.234:60875] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:28:41.881963 2018] [core:alert] [pid 6300] [client 24.2.212.234:60876] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:28:42.005046 2018] [core:alert] [pid 6299] [client 24.2.212.234:60877] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:28:42.071620 2018] [core:alert] [pid 6296] [client 24.2.212.234:60878] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:30:45.568194 2018] [core:alert] [pid 6297] [client 207.46.13.35:8204] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:31:07.345645 2018] [core:alert] [pid 6302] [client 98.219.149.24:55756] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://www.google.com/
[Fri Aug 17 23:31:10.979630 2018] [core:alert] [pid 6308] [client 54.36.149.8:58298] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:31:55.095135 2018] [core:alert] [pid 7606] [client 140.213.24.241:47499] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Aug 17 23:36:52.326339 2018] [core:alert] [pid 7532] [client 72.21.217.140:20214] /var/www/html/.htaccess: Invalid command ’\xef\xbb\xbf’, perhaps misspelled or defined by a module not included in the server configuration

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

It looks like that you have a syntax error in your .htaccess file, I would recommend revering your .htaccess file to the default Wordpress .htaccess file as suggested by X40C.

Regards,
Bobby

Submit an Answer