求助一个文件转换为 nginx

2016-12-13 11:32:57 +08:00
 xiaoyu9527

Turn on URL rewriting

RewriteEngine On

Installation directory

RewriteBase /plugins/support

Protect hidden files from being viewed

<Files .*> Order Deny,Allow Deny From All </files>

Protect application and system files from being viewed

RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

Allow any files or directories that exist to be displayed directly

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d

Rewrite all other URLs to index.php/URL

RewriteRule .* index.php/$0 [PT]

求助一下求助一下

1339 次点击
所在节点    问与答
6 条回复
xiaoyu9527
2016-12-13 11:33:14 +08:00
htacess 转换为 nginx
xiaoyu9527
2016-12-13 11:36:50 +08:00
这个好难
FifiLyu
2016-12-13 11:38:19 +08:00
Zzzzzzzzz
2016-12-13 11:41:58 +08:00
try_files 到 index.php 就好了, 不用 rewrite
wancaibida
2016-12-13 13:29:31 +08:00
antlr
xiaoyu9527
2016-12-13 14:43:52 +08:00
@Zzzzzzzzz 我看不懂呀
@FifiLyu 在线转换不行
@wancaibida 我看不懂呀

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/327265

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX