如果服务器是nginx在配置中添加如下代码即可
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
如果是apache则添加如下代码
<IfModule mod_rewr
如果服务器是nginx在配置中添加如下代码即可
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
如果是apache则添加如下代码
<IfModule mod_rewr