求助nginx伪静态转apache

新手上路,请多包涵

if (!-e $request_filename) {
rewrite ^/(.*) /index.php?s=$1 last;
}

阅读 3.3k
1 个回答

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)$ index.php/$1 [L]
</IfModule>

推荐问题