说明: Asp/Aspx程序一般都有默认的一套配置文件,所以面板暂不支持自动配置伪静态功能,需要自己手动配置。 web.config路径在网站(站点)根目录下
如何手动配置?
分为两种情况,情况如下:
1、当Asp程序根目录不存在web.config文件,或者配置文件内容为如下代码时:
可以直接将面板生成的代码复制到伪静态,保存即可
- <?xml version="1.0" ?>
- <configuration>
- <location allowOverride="false" inheritInChildApplications="false" path=".">
- <system.webServer>
- <rewrite>
- <rules configSource="web_config\rewrite.config"></rules>
- </rewrite>
- <defaultDocument configSource="web_config\default.config"></defaultDocument>
- <httpErrors configSource="web_config\httpErrors.config"></httpErrors>
- <handlers configSource="web_config\php.config"></handlers>
- </system.webServer>
- </location>
- </configuration>
-
复制代码
2、当Aspx程序和Asp程序根目录自带了web.config文件时: 如原配置为以下格式:
|