用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2659|回复: 3
收起左侧

URL传递中文的问题--IIS 7.5

[复制链接]
发表于 2013-8-15 13:39:32 | 显示全部楼层 |阅读模式
domain.com/movie/show/中文

IIS 7.5   CI 2.1.4   提示错误 The URI you submitted has disallowed characters.

很多帖子都说新建 MT_URI.php,修改 config.php,但是都没有效果,,,,求最终解决方法!!!


但是我在Apache下  什么都没配置就可以的。


.htaccess
-------------------
RewriteEngine on
RewriteCond $1 !^(index\.php|static|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

---------
web.config
------------------------
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

<rewrite>
  <rules>
    <rule name="name1" stopProcessing="true">
      <match url="^(.*)$" ignoreCase="false" />
      <conditions>
        <add input="{R:1}" pattern="^(index\.php|static|robots\.txt)" ignoreCase="false" negate="true" />
      </conditions>
      <action type="Rewrite" url="/index.php/{R:1}" />
    </rule>
  </rules>
</rewrite>
    </system.webServer>

</configuration>


 楼主| 发表于 2013-8-15 18:07:13 | 显示全部楼层
认真尝试

http://codeigniter.org.cn/forums ... hread&tid=15603

这个有效,感谢
发表于 2013-8-15 20:32:02 | 显示全部楼层
关注中
发表于 2013-11-9 11:37:10 | 显示全部楼层
我的内容页 老跳首页 咋办啊   http://it360.org.cn/view/2215  帮看看啊 谢谢啦

本版积分规则