从html或直接从web.config重定向到aspx页面 [英] redirect to aspx page from html or directly from web.config
问题描述
Hy frens,
我同时有这个错误。我正在使用ftp更新我的文件,突然我的网站现在正在工作,显示无法打开页面的错误。该错误是由于文件的路径错误。我有这个错误。
http://multishopping.com.np/index.html?aspxerrorpath=/Homepage.aspx
我的index.html有这个重定向代码
Hy frens,
I have this error in the mean time. I was updating my files using ftp and suddenly my website which was working now shows error of not opening the pages. The error is due path error of the file. I have this error.
http://multishopping.com.np/index.html?aspxerrorpath=/Homepage.aspx
my index.html has this redirecting code
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>index</title >
<meta http-equiv="REFRESH" content="0;url=Homepage.aspx" />
</head>
<body>
<script type="text/javascript">
window.location = "Homepage.aspx";
</script>
</body>
</html>
我不明白的是,如果我在index.html页面中写即将推出,那么其他工作方式就是不能访问完整的Homepage.aspx路径。如何解决这个问题请尽快帮助。关于bishnu
what i dont understand is if i write 'coming soon' in the index.html page then it works other wise the full Homepage.aspx path is not being accessed. How can i solve this issue please help asap. with regards bishnu
推荐答案
找到标签
<customerrors />
....然后添加或使 code =Off 用那个标签.....
within your Web.config file....then add or make the code="Off" with in that tag.....
这篇关于从html或直接从web.config重定向到aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!