这里写自定义目录标题
thinkphp6 伪静态配置(nginx和Apache)
apache配置如下:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
Nginx配置如下:
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?s=/$1 last;
}
}