我以Dynamic Web Project的形式在eclipse中创建了我的网页,并将WebContent folder上传到server (WebContent contains index.html js, imgs and css)。当我调用myPage.com时,它只对url myPage.com/WebContent起作用。之后,我将folder WebContent目录的内容上传到server root。现在,当我调用myPage.com时,它会显示空页面。mypage.com/index.html也显示空页面。
如何上传WebContent,使index.html无需在url中使用WebContent即可显示
发布于 2014-05-11 10:00:48
这可以通过以下方式实现:
index.html放置在包含:<meta http-equiv="refresh" content="0; url=http://mypage.com/WebContent" />的根文件夹中来实现;https://stackoverflow.com/questions/23591167
复制相似问题