|
楼主 |
发表于 2018-6-13 13:35:50
|
显示全部楼层
本帖最后由 卖烧烤123 于 2018-6-13 14:06 编辑
是不是路由也要做配置,这种{url topic/getone/$question['id']} url还是http的
function url($var, $url = '') {
global $setting;
// exit($var);
$removeIndex=config_item('removeIndex');
$location = $removeIndex . $var . $setting ['seo_suffix'];
if ((false === strpos ( $var, 'admin_' )) && $setting ['seo_on']) {
$useragent = $_SERVER ['HTTP_USER_AGENT'];
if (! strstr ( $useragent, 'MicroMessenger' )) {
$location = $var . $setting ['seo_suffix'];
}else{
$location = 'index.php?' . $var . $setting ['seo_suffix'];
}
}
$location = urlmap ( $location, 2 );
return base_url () . $location; //程序动态获取的,给question的model使用
}
为什么url还是http
|
|