PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

虚拟主机不支持INDEX.ASPX [复制链接]

1#
首页默认文档不支持index.aspx  .. 只有default.aspx
有没办法可以使用吗。。可不想用跳转。。。
分享 转发
TOP
2#

打开web.config文件

在    <Rules>下面加一排内容
      <RewriterRule>
        <LookFor>~/default.aspx</LookFor>
        <SendTo>~/index.aspx</SendTo>
      </RewriterRule>

你试一下这样行不行的,我自己也没有测试过,

不过一般空间都可以设置默认文档的
TOP
3#

谢谢答复。。 。
加上后, 再COPY index.aspx 重命名成DEFAULT.ASPX  首页显示空白 。。。   有什么遗漏么 ,,,谢谢了 。。
-------------------------
我让他们客服加默认文档,。。 那小子回复了 。。。NND

Dear  ,
Thank you for contacting Online Support,
I apologize for any confusion. This is the order of precedence for the default files on your Windows hosting account, unfortunately we will not be able to add another file name to the default files list. I apologize for any inconvenience this may cause:

   1. default.asp
   2. default.html
   3. default.htm
   4. default.aspx
   5. default.php
   6. default.shtml
   7. default.shtm
   8. index.html
   9. index.htm
  10. index.asp
  11. index.php
  12. index.shtml
  13. index.shtm
  14. home.html
  15. home.htm
  16. home.shtml
  17. home.shtm
  18. welcome.html
  19. welcome.asp

NOTE: If ColdFusion is enabled on your Windows hosting account, index.cfm is given top default file precedence.
If you would like more control over the index file list for your hosting account, you may want to look into our Virtual Dedicated or Dedicated Servers. You may find more information on the Dedicated and Virtual Dedicated servers that we offer at the links below:
• Dedicated Servers
• Virtual Dedicated Servers

Please let us know if we can help you in any other way.
Sincerely,
Matthew P.
Online Support Team
TOP
发新话题 回复该主题