【问题标题】:how can i change apache rewrite rule to nginx rule [closed]我如何将 apache 重写规则更改为 nginx 规则 [关闭]
【发布时间】:2011-04-16 18:41:17
【问题描述】:

因为这个问题我累了

我在 apache 中有这个规则。

RewriteCond   %{HTTP_HOST}             ^(www\.|domain\.)
RewriteCond $1 !^(index\.php|info\.php|public)
RewriteRule ^(.*)$ /index.php/$1

这会发送 index.php 之后的所有请求,除了 index.php、info.php、public forder。

但是我不知道怎么改成nginxㅠㅠ

请帮忙!

【问题讨论】:

  • 关于配置网络服务器的问题应该发布在 ServerFault 上,而不是 StackOverlow 上

标签: nginx rewrite


【解决方案1】:

我不是 ngix 专家,但我建议你看看这里 http://wiki.nginx.org/Wordpress 。

它向您展示了如何配置 Wordpress 以在 ngix 上流畅运行,所以猜测这是一个好的开始。

【讨论】:

  • 感谢您的来信!我正在阅读那个网站~!
猜你喜欢
  • 1970-01-01
  • 2014-06-30
  • 2016-08-09
  • 2021-04-04
  • 1970-01-01
  • 2014-11-17
  • 1970-01-01
  • 1970-01-01
  • 2020-01-13
相关资源
最近更新 更多