伪静态配置
标签作用:配置程序伪静态后URL中将不再包含index.php,整个地址更美观
1、IIS环境(IIS6的环境自行百度):
1)安装rewrite组件,如果使用空间一般空间商默认已经安装;
2)到后台配置参数中开启伪静态开关(老版本直接修改程序config/config.php文件url_type=2);
3)在站点目录建立web.config文件(老版本根目录下默认已有,去除后缀bak即可,新版本到rewrite目录下拷贝规则),手动建立的话规则如下:
01 02 03 04 05 06 07 08 09 10 11 | < code >< rewrite >< rules > < rule name = "reIndex" stopProcessing = "true" > < match url = "^(.*)$" ignoreCase = "true" /> < conditions logicalGrouping = "MatchAll" > < add input = "REQUEST_FILENAME" matchType = "IsDirectory" negate = "true" /> < add input = "REQUEST_FILENAME" matchType = "IsFile" negate =
|