linux centos7 下Nginx服務器實現URL重寫去掉index.php方法,跟Apache仍是不同的。

想要的URL :http://localhost/Admin/ 而本身的是http://localhost/index.php/Admin/php 方法:nginx 在nginx配置文件nginx.conf中添加:服務器 location / {spa   if ( !e $request_filename ) {code     rewrite ^/(.*)$ /index.php/$1 las
相關文章
相關標籤/搜索