投稿 评论 顶部

thinkphp伪静态

佚名 网络安全

Nginx

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

Apache

<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]</IfModule>

?