简体   繁体   English

Nginx是否使用.htacess? 如果没有,那么我的WordPress网站如何使用.htaccess?

[英]Does Nginx use .htacess? If not, then how is my WordPress site using .htaccess?

I ask this question as I have a WordPress blog on an Nginx server that clearly has an .htacess file; 我问这个问题是因为我在Nginx服务器上有一个WordPress博客,该博客显然带有.htacess文件; however, I was told by a co-worker that Nginx does not use .htaccess. 但是,一位同事告诉我,Nginx不使用.htaccess。 If Nginx doesn't use .htacess, then what does it use? 如果Nginx不使用.htacess,那么它将使用什么?

Just because there's a .htaccess file in the folder doesn't mean it's being used in any way by nginx. 仅仅因为文件夹中有一个.htaccess文件,并不意味着nginx会以任何方式使用它。

You can set up nginx to work with WordPress via the nginx configuration files. 您可以通过nginx配置文件将nginx设置为可与WordPress一起使用。 http://wiki.nginx.org/WordPress http://wiki.nginx.org/WordPress

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM