本机开发的服务器是使用apache,分页地址正常
hostname.com/essay/index/Essay_page/2.html
但到虚拟主机上(IIS)就变成了这样
hostname.com/essay/index/essay%2Findex_html//Essay_page/2.html
IIS支持rewrite,规则相同,本地与服务器文件也相同,其他地址都正常
urlManager配置
'urlManager'=>
array(
'urlFormat'=>'path',
'caseSensitive' => true,
'urlSuffix' => '.html',
'showScriptName'=>false,
'rules'=>array(
'<action>/<id:\d+>'=>'site/<action>',
'<action>'=>'site/<action>',
),
)