在Iis下的Url_Rewrite的分页问题

本机开发的服务器是使用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>',

	),

)



最后发现是.htaccess未生效,IIS主机组件原因,更换主机后问题解决