thinkphp rewrite
location@rewrite{
//如果有admin.php文件,重写
rewrite^/admin.php(.*)$/admin.php?s=$1last;
//如果有index.php文件,重写
rewrite^/index.php(.*)$/index.php?s=$1last;
//重写到index.php
rewrite./index.php?s=$urilast;
}
if (!-e $request_filename) {
rewrite ^/EApi(.*)$ /EApi/index.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
#rewrite ^(.*)$ /EApi/index.php?s=$1 last;
#rewrite ^EApi(.*)$ /EApi/index.php?s=$1 last;
break;
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。