.htaccess 如何控制URL格式?

.htaccess 如何控制URL格式?,.htaccess,.htaccess,我需要有关web.config文件的帮助 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpErrors errorMode="Custom"> <remove statusCode="404"/> <error statusCode="404" path="/

我需要有关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>
同时具有web.config和.htaccess

我的网站正在以url格式打开。。www.和非www.以及

要以标准格式打开我的网站吗

# 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]