伪静态配置
//在Apache中: <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule> //在Nginx中: location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
本文来自博客园,作者:辄夜花泽,转载请注明原文链接:https://www.cnblogs.com/johnbin/p/14973569.html

浙公网安备 33010602011771号