迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
虛擬主機如何在web.config設置301跳轉
win的 虛擬主機
可以問問服務商嘛
完整代碼如下,將以下代碼復制一下,保存一個web.config文件,放到網站根目錄 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="sudu_rewritefunc_unifieddomainname" enabled="true" patternSyntax="ECMAScript" stopProcessing="false"> <match url="(.*)" ignoreCase="true" negate="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" matchType="Pattern" pattern="^www\.baidu\.com$" ignoreCase="true" negate="true" /> </conditions> <action type="Redirect" url="http://www.baidu.com/{R:0}" appendQueryString="true" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> <system.webServer> <defaultDocument> <files> <clear /> <add value="index.html" /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="iisstart.htm" /> <add value="index.asp" /> </files> </defaultDocument> </system.webServer> </configuration> 效果是,不加www的域名跳轉到加www的域名
就是這個代碼,報500錯誤啊
回復@Booid.com
網上找了一個代碼,放上報500錯誤
回復@范閑
如果你加上這個文件,報500錯誤,一般是沒有安裝偽靜態組件,安裝一個組件即可
可以問問服務商嘛
就是這個代碼,報500錯誤啊
回復@Booid.com
網上找了一個代碼,放上報500錯誤
回復@范閑
如果你加上這個文件,報500錯誤,一般是沒有安裝偽靜態組件,安裝一個組件即可