以前,我在我的 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 一起使用吗??..