小编Aru*_*vid的帖子

我的 htaccess mod_rewrite 的 nginx 等于什么?

以前,我在我的 CodeIgniter 网站上使用运行 Apache 的 linode VPS。今天我安装了 nginx,我的网站登陆页面即将到来,但其他使用 htaccess 重写 URL 的页面却没有出现。这是我的htaccess,

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1
Run Code Online (Sandbox Code Playgroud)

我的 htaccess 的 nginx 等价物是什么?我还需要在我的 codeigniter 配置和应用程序中进行任何更改吗??..

对于 codeigniter 配置中的 URI 协议,我正在使用,

$config['uri_protocol'] = 'PATH_INFO';
Run Code Online (Sandbox Code Playgroud)

这可以与 nginx 一起使用吗??..

php nginx .htaccess codeigniter apache-2.2

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

.htaccess ×1

apache-2.2 ×1

codeigniter ×1

nginx ×1

php ×1