迅睿框架 版主:迅睿框架研发组
多网站系统设置目录模式 sitemap.xml 无法访问
类型:迅睿CMS 更新时间:2025-08-13 11:05:49

imageimage

image

多网站系统设置目录模式 sitemap.xml 无法访问

回帖
  • 帝国织梦开发
    #1楼    帝国织梦开发
    2025-08-13 09:54:57
    Chrome 0
    en的伪静态没设置成功
  • llq
    #2楼    llq
    2025-08-13 09:56:01
    Chrome 0
    帝国织梦开发 请问如何设置,在哪里设置
  • llq
    #3楼    llq
    2025-08-13 11:05:40
    Chrome 0
    本地使用iis服务器,需要在网站根目录创建web.config,配置如下,根据实际情况修改调整:<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <!-- 主站点规则 --> <rule name="Main Site Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_URI}" pattern="\.(js|ico|gif|jpe?g|bmp|png|css)$" negate="true" /> <add input="{REQUEST_URI}" pattern="^/en/" negate="true" /> </conditions> <action type="Rewrite" url="/index.php" /> </rule> <!-- /en目录规则 --> <rule name="EN Directory Rule" stopProcessing="true"> <match url="^en/(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_URI}" pattern="\.(js|ico|gif|jpe?g|bmp|png|css)$" negate="true" /> </conditions> <action type="Rewrite" url="/en/index.php?path={R:1}" /> </rule> </rules> </rewrite> </system.webServer></configuration>
    满意答案
  • llq
    #4楼    llq
    2025-08-13 11:05:49
    Chrome 0
    @llq:已解决问题