永久链接选项在Wordpress中设置“帖​​子名称”时获取错误

I get error 502 bad gateway When I set Permalink Options to Post name.If I change it to Plain, It work successfully.

Why I get this error ?

The error is related to web-server , you using nginx web-server and you must follow on google Fix an error 502 bad request nginx .

deactivate your all plugins then try to reset your permalink

According to this article, this might happen when mod_rewrite module is not loaded by Apache.

UPDATE:

Maybe the problem is still the same. Check this page on how to enable Nginx mod_rewrite.