我的web.config文件需要帮助
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Custom">
<remove statusCode="404"/>
<error statusCode="404" path="/404.html" responseMode="ExecuteURL"/>
<remove statusCode="500"/>
<error statusCode="500" path="/index.cfm" responseMode="ExecuteURL"/>
</httpErrors>
</system.webServer>
</configuration>
的.htaccess
# Helicon ISAPI_Rewrite configuration file
# Version 3.0.0.29
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
RewriteCond %{HTTP:Host} ^example\.com$
RewriteRule (.*) http\://www.example.com$1 [NC,R=301,U]
RewriteRule ^/index.cfm$ http\://www.example.com [NC,R=301,U]
RewriteRule ^//index.cfm$ http\://www.example.com [NC,R=301,U]
同时拥有web.config和.htaccess
我的网站正在打开网址格式.. www。和非www以及www.example.com/index.cfm
想要以标准格式http://www.example.com
打开我的网站