云虚拟主机默认不支持压缩包类型文件下载,如需下载请到控制台添加MIME类型即可。
常见文件后缀以及对应MIME类型: 扩展名 | 类型 |
---|
.doc | application/msword | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | .rtf | application/rtf | .xls | application/vnd.ms-excel application/x-excel | .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .ppt | application/vnd.ms-powerpoint | .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | .pps | application/vnd.ms-powerpoint | .ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow | .pdf | application/pdf | .swf | application/x-shockwave-flash | .dll | application/x-msdownload | .exe | application/octet-stream | .rar | application/octet-stream | .zip | application/x-zip-compressed | .mp3 | audio/mpeg | .bmp | image/bmp | .gif | image/gif | .xml | text/xml |
如要将i9935.com 重定向到www.i9935.com ,则配置web.config 如下:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="www" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^i9935\.com$" /> </conditions> <action type="Redirect" url="http://www.i9935.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
|