Error message
Today, I transferred my website to a server, from windows 2003 to ubuntu.
The natural pseudo-static file name must be converted from httpd. ini to. htaccess.
After transfer. All sites 500 error. Premise: deletion of the htaccess website can be opened normally, the file permission is normal, and my pseudo-static rules are applicable to httpd. ini and htaccess. The rules are correct.
After the file is transferred, I directly "sudo mv httpd. ini. htaccess"
This is the command. I almost fell asleep all night.
Finally, look for it. Baidu, Google, Niang, and brother finally found a completely unexpected solution, smecta !!!
Delete. htaccess. Run vim again. Then save the written content. It's totally normal for me.
Nima. Is this a tough guy? It's so deep into my own trap.
Of course, there are many questions about http 500 internal server error. This article only introduces the solutions to the problems caused by static rules.