Home  >  Article  >  Backend Development  >  关于网站路径有关问题

关于网站路径有关问题

WBOY
WBOYOriginal
2016-06-13 13:17:10862browse

关于网站路径问题
我用的事dede的系统,我想实现地址在地址中包含中文编码。如:http://blog.webshuo.com/category/%e5%b7%a5%e4%bd%9c%e5%bf%83%e5%be%97/这样,这个路径中间包含中文编码。
在我设置栏目路径{cmspath}/%E5%99%A8%E5%9C%B0%E5后相应的文件夹和静态文件也都生成成功了,但是在访问这个路径的时候,却提示403错误。
是哪里设置有问题还是怎么回事。多谢各位帮忙了。

------解决方案--------------------
也可能是相应目录下缺少首页文件。[首页文件]的名称必须是index.html,index.htm或default.htm中的一个
------解决方案--------------------
实在不行给我发私信告诉我你联系方式,我帮你看下。
------解决方案--------------------
2种可能的问题

1.确实没有目录
2.没有正确设置首页文件名


郑州PHP.Net
http://www.zzphp.net/
------解决方案--------------------
不要把base后的地址参数直接写出来,那东西给http和浏览器解决
------解决方案--------------------
urlencode('%e5%b7%a5%e4%bd%9c%e5%bf%83%e5%be%97')

即栏目路径{cmspath}/%25e5%25b7%25a5%25e4%25bd%259c%25e5%25bf%2583%25e5%25be%2597

非要在 GBK 环境中使用 utf-8,无疑是自寻烦恼
------解决方案--------------------
下UTF-8版本的啊

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn