The static of the opinions is not beneficial to the optimization

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Forum often said to see Webmaster advice: Site optimization When the site is static, some webmaster will insist that the site static, but also will find some large sites still use dynamic address, the static site is really a disagreement, in fact, for SEO, Static is one of the most basic requirements, To a certain extent, static Web site is more conducive to spiders crawl, Shenzhen part-time bar to the webmaster said static to optimize the benefits.

First: Spiders are afraid to crawl complex links, now the page is generated by the program real-time, users visit a Web site, the extent will be based on access to the Web site to participate in the call database, real-time generation of page content, these URLs contain a lot of compliance, question marks, or some messy parameters, such as the following use ASP Language business website Dynamic address: http://www. JIANZHI8.COM/NEWS.ASP?CAT_ID=40&NEWS_ID=300, for such a complex long connection address, spiders are very reluctant to crawl, afraid of the possibility of encountering an unlimited loop connection, or dangerous spam links, Or the site exists a large number of duplicate content, so for the site to want to be fully included, or recommend the webmaster to the dynamic URL address into static URL, but also reduce the spiders crawl difficulties, and static URL address is more easily remembered and used by users.

Second: To cater for more search engine crawl site, in Google official statement said the site can not be static, Google spiders show that the ability to crawl dynamic address, or even dynamic address is more conducive to spiders crawl, but this statement is only for Google's own search engine, Search engines other than Google have so far preferred static addresses. As long as the webmaster can put the site's static settings correctly, do not set the Web page static, the session ID also put in static address, spiders to crawl the site, will correctly crawl to the site's static address.

Also: Improve the performance of the Web site program, especially for some large web sites, the site uses dynamic address, the user to enter the site with a different entry, will produce a different dynamic address, such access will bring a burden on the site load, but if the site is set to static, Before the user access can directly obtain resources or database data through static processing, generate static pages, all access to this static page, and static processing of the page itself to access faster than dynamic page many times, so the program performance will be greatly improved.

For the site is static or dynamic, the Internet will be different, regardless of the pros and cons of the two, here again to say how Dynamic Web site can be static, to analyze several different procedures of the static method:

1. WordPress blog Static, WP blog is now a personal webmaster use more blog programs, to static is also very easy, using WP No Category Base plug-ins, after installation in the link settings to select a custom structure:/%category%/%post_id%. HTML such links are set up and can automatically generate pseudo static.

2. Linux Apache server, using the URL rewrite module in the server, using the Mod_rewrite module, write code in the. htaccess file: rewriterule/products/([0-9]+)/products.php? Id=$1.

3. Discuz Forum, in the Forum's background optimization settings, find search engine optimization, the URL static several items are selected, and then click Save. It then generates a. htaccess (if the Windows system uses Httpd.ini) to put it under the Forum root directory:

< Ifmodule mod_rewrite.c >

Rewriteengine on

Rewritebase/

# Rewrite System rules do not modify

Rewriterule ^archiver/([a-z0-9\-]+\.html) $ archiver/index.php?$1

Rewriterule ^forum-([0-9]+)-([0-9]+) \.html$ forumdisplay.php?fid=$1&page=$2

rewriterule^thread-([0-9]+)-([0-9]+)-([0-9]+) \.html$ viewthread.php?tid=$1&extra=page\%3d$3&page=$2

Rewriterule ^space-(Username|uid)-(. +) \.html$ space.php?$1=$2

Rewriterule ^tag-(. +) \.html$ tag.php?name=$1

</ifmodule >

4. However, there is no Web site dynamic URL structure are different, the server settings may also be different, the code is not the same, to set the static is best programmers to write to avoid unnecessary errors, the impact of static page generation.

In fact, not from the optimization point of view, dynamic address and static address is no difference, if the webmaster feel that their site does not need to use SEO optimization, just to show the company style, that static is not necessary. But Shenzhen part-time bar (http://www.jianzhi8.com) station in the point of view of the webmaster, dynamic static on the site are not too big negative impact, but static can improve the performance of the site, improve the spiders crawl, improve the user's experience, it does not use static address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.