Html和css网站没有被正确抓取

时间:2016-04-02 20:23:25

标签: html css

你好,我有一个用html和css制作的网站。它有很多不同的页面。我发布了这个网站,它被添加到谷歌。当您在谷歌搜索omicrome时,主页面出现(index.html),不幸的是,这是google中出现的唯一页面。我不知道是否必须在代码中添加内容。此外,当我在网站上,我点击一个按钮,将我带到我的网站的不同页面时,仍然会在网址上显示omicrome.com/它应该说omicrome.com/about为什么不这样做?我是否必须在代码中添加内容?我正在使用GoDaddy和谷歌驱动器进行我的域名和托管。 编辑:这是index.html页面的代码,以便您可以看到我编写它的方式:

     <html>
     <head>
     <title>Omicrome</title>

     <link rel="SHORTCUT ICON" href="img/icon.ico" type="image/x-icon" />
     <link rel="ICON" href="img/icon.ico" type="image/ico" />

     <link rel="stylesheet" href="css/reset.css">
     <link rel="stylesheet" href="css/text.css">
     <link rel="stylesheet" href="css/960_24_col.css">
     <link rel="stylesheet" href="css/style.css">

     <meta name="Description" CONTENT="Omicrome is the place to be for       technology, science, space, gaming and internet news with the odd side of comedy. New content daily.">


  </head>
   <body>

  <div class = "container_24">
  <header>
<h1>Omicrome</h1>
    <nav>
        <ul>
            <li><a href="# " class = selected>Home</a></li>
            <li><a href="news.html">Articles</a></li>
            <li><a href="software.html">Software</a ></li>
            <li><a href="about.html">About</a></li>
        </ul>
    </nav>

    <div class = "banner grid_18" href="about.html">
     <a href="elonmusk.html"  class="button" id ="new">View Article</a>

        <h2>

        </h2>
    </div>
    <div class=" grid_8 callout"></div>
     <a href="software.html"  class="button" id ="spacesoft">View Software</a>
  </header>




  <div class = "main clearfix">
  <div class ="grid_9">
      <h3>About The Site</h3>
     <p>Omicrome is where you get all your amazing content. Between tech, space, films and internet news, we've got it all here on Omicrome. We also post software and other downloadable projects on the site for you to use and enjoy. Check back daily for new interesting content or go to the articles section to see all of our content in one place. 


    <p><a href="about.html"  class="button">Find Out More</a></p>
   </div>

   <div class ="grid_9">
    <h3>Our Content</h3>
        <p>Every day we post about different things. Sometimes   we post about space, technology, films, games and the internet but you can also find news on events, the internet and even see what we're up to! Make sure to check back daily!
    </p><p>
    </p><p>  </p>
    <br>

 <p><a href="about.html" class="button">Find Out More</a></p>
</div>
    </div>
    <footer><p><strong>Omicrome</strong><a href="#"></a></p></footer>

     </div>

     </div>
    </body>
    </html>

1 个答案:

答案 0 :(得分:0)

它转向索引的原因是因为这就是互联网的运作方式。它寻找索引,如果它存在,那就去那里。这很正常。

对于不更改的URL,您需要绝望的文件名称不同的名称。例如,如果你有home.html,并且你在那里重定向,它应该是'omicrome.com/home.html'

检查您的文件是否已命名且您是否正确重定向!