0

求助nginx伪静态规则转为apache规则

nginx伪静态规代码如下:

try_files $uri $uri/ /index.php?$query_string;

        if (!-e $request_filename) { 
          rewrite  ^(.*)$  /?/$uri last;

        }

1个回答

0
RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d 
 RewriteCond %{REQUEST_FILENAME} !-f 
 RewriteRule ^(.*)$ /?/$1 [QSA,PT,L]

撰写答案

SegmentFault

一起探索更多未知

下载 App