每次我尝试在导航栏中访问我的team.html或schedule.html时,都会显示我的索引页面。即使浏览器声明页面是正确的。以下是示例:http://www.hidesertheat.com/和http://www.hidesertheat.com/team.html
有什么建议吗?
谢谢!
导航代码:
<!--A Design by W3layouts
Author: W3layout
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Hi Desert Heat Football</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='http://fonts.googleapis.com/css?family=Six+Caps' rel='stylesheet' type='text/css'>
<link href="web/css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- start slider -->
<link href="web/css/camera.css" rel="stylesheet" type="text/css" media="all" />
<script language="JavaScript" src="js/gen_validatorv31.js" type="text/javascript"> </script>
<script type='text/javascript' src='web/js/jquery.min.js'></script>
<script type='text/javascript' src='web/js/jquery.mobile.customized.min.js'></script>
<script type='text/javascript' src='web/js/jquery.easing.1.3.js'></script>
<script type='text/javascript' src='web/js/camera.min.js'></script>
<script language="javaScript">
var frmvalidator = new Validator("contactform");
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email");
frmvalidator.addValidation("email","email","Please enter a valid email address");
</script>
<script>
jQuery(function(){
jQuery('#camera_wrap_1').camera({
thumbnails: false
});
jQuery('#camera_wrap_2').camera({
height: '400px',
loader: 'bar',
pagination: false,
thumbnails: false
});
});
</script>
</head>
<body>
<!-- start header_menu -->
<div class="header_menu">
<div class="main_top">
<div class="wrap">
<div class="headerlogo_tag"><a href="/index.html"><img src="http://www.hidesertheat.com/test/web/images/logo.png" width="174" height="174" alt=""/></a></div>
<div class="wrapper">
<div class="cssmenu">
<ul>
<li><a href="index.html"><span>Home</span></a></li>
<li><a href="about.html"><span>About</span></a></li>
<li><a href="http://www.hidesertheat.com/news/"><span>News</span></a> </li>
<li><a href="http://www.hidesertheat.com/team.html"><span>Team</span></a></li>
<li><a href="schedule.html">Schedule</a></li>
<li><a href="#contactanchor"><span>Contact</span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
这是在.htaccess文件中:
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
答案 0 :(得分:0)
这三个文件的内容(index.html,team.html,schedule.html)是相同的,或者.htaccess文件中有一条规则告诉team.html和schedule.html显示索引。 HTML
答案 1 :(得分:0)
OMG我刚看到你的服务器。它完全搞砸了。你有一个名为team.html的文件夹。因此,当您尝试在您的网站中打开team.html文件时,它将搜索team.html filder的索引文件。我不知道为什么有人将.html扩展名称为服务器文件夹。 例如:您的schedule.html文件位于http://www.hidesertheat.com/schedule.html/schedile.html,因此当您在浏览器中输入http://www.hidesertheat.com/schedule.html时,它将在http://www.hidesertheat.com/schedule.html文件夹中搜索index.html。如果你想看到真正的schedule.html,你必须输入http://www.hidesertheat.com/schedule.html/schedile.html但是你也必须重置css文件。
这是最好的解决方案。 将所有.html文件获取到服务器的public_html文件夹。删除名称为&#34; .html&#34;
的所有文件夹至少有2个&#34; .html&#34;的文件夹。一个是team.html(文件夹),另一个是schedile.html(文件夹),从服务器删除这些文件夹,然后将你的team.html(html文件)和schedile.html(html文件)放在那里。