duandaotui5633 2010-03-24 14:07
浏览 96
已采纳

关于涉及php的网站开发的SEO最佳实践的讨论

Recently in our work, I've started getting some experience with SEO (finally). It's something I've put off for a long time because I've always maintained that SEO is a buzz-word b.s. pseudo-science and more about providing quality, relevant content (assuming proper header tags and the basics are covered). However, sometimes a client doesn't have stellar content yet still demands SEO and high rankings.

While it's not how I design sites 100% of the time (as design dictates structure), I typically create a basic template from the design my boss gives me, then I optimize it, and then strip the top and bottom and move those to header.php and footer.php, using the following to bring in the header and footer based on AJAX versus HTML requests:

<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''){
include('includes/header.php');
}?>

#content here

<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''){
include('includes/footer.php');
}?>

Then, I use jQuery to intercept page requests and I use AJAX to fill in, for example, a #copy div with the new content. This avoids unnecessarily loading all the header and footer info everytime, but still allows users without Java to access pages without any problems. (also to think about, depending on size of content, do the extra http requests added using this method render it more of a server strain versus a single, larger file?)

I don't have a really solid understanding of the meta keywords and their SEO significance, but as I recall reading, the keywords, title, and description on a page should match up to the pages content--ie. each page should have slightly different keywords/description while retaining some common ground.

What I'm getting at here is trying to foster a discussion on whether my approach is flawed to begin with, if there are things I can do (within reason) that keep the site structure simple but allow for better SEO practices, or if my SEO understandings are wrong.

This isn't a question, per say, but hopefully a constructive discussion here that more than just I can learn from. I appreciate any responses and hope to hear from you. Thanks!

  • 写回答

3条回答 默认 最新

  • dongwolu5275 2010-03-24 14:50
    关注

    The search engine crawlers fit the following criteria;

    • They may not be able to see, hear, move, or may not be able to process some types of information easily or at all.
    • They may have difficulty reading or comprehending text.
    • They may not have or be able to use a keyboard or mouse.
    • They may have a text-only screen, a small screen, or a slow Internet connection.
    • They may not speak or understand fluently the language in which the document is written.
    • They may be in a situation where their eyes, ears, or hands are busy or interfered with (e.g., driving to work, working in a loud environment, etc.).
    • They may have an early version of a browser, a different browser entirely, a voice browser, or a different operating system.

    Which happen to be the criteria for AAA Accessibility Guidelines so if you follow those you get good SEO too.

    Matt Cutts from Google has a good blog and contirbutes to Google's Webmaster Help describing how their ranking algorithm is updated.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 egg异步请求返回404的问题
  • ¥20 Ti毫米波雷达板同步
  • ¥15 安装了kali后用VM打开,没有鼠标且无法控制怎么办啊
  • ¥15 关于#python#的问题:无功优化问题数学建模要以3机9节点为算例编写一个以最小有功网损为目标的无功优化问题,想要了解清楚其中数学建模的具体公式进行学习
  • ¥15 mvc采用element分页的问题
  • ¥15 proteus怎样构建他励直流发电机模型?
  • ¥15 求制作PPT有偿,帮
  • ¥20 显示在此环境中不可导入Django
  • ¥15 关于#前端#的问题:选中后合计金额没变化,另外想要传递minsuId值到下一个页面会报错(语言-javascript)
  • ¥15 cesium双面渲染