Peng: A problem to be solved at the beginning of a new website

Source: Internet
Author: User

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

July 1, 2011, the Peng Personal blog began its journey, for the rookie of me, spent a whole night to the personal blog site encountered problems solved, in between, I encountered some of the Web site problems, these problems may also be new people encounter, or prepare to build the station of the new friends of the problem, Write a few points before and after the construction station to pay attention to, hoping to help new friends to build the station when the difficulties encountered, to help others is tantamount to helping themselves:

First, the Web site program version of the choice: my blog site program with WordPress, it has a powerful function, is currently the mainstream platform to build a blog program. I use the space backstage has the direct upload WP program function, faster than FTP upload, I chose it, it is 3.1.2 version, but with the template I use can not play in this version of the normal, it adapts to the wordpress3.1.1 version, so to everyone's attention, version of the issue is very important, I started Web site problems can not be solved, the final discovery is a version of the problem. And why?

Template for the compatibility of the program is not the same, we sometimes ignore the template to apply which version of the WP, the use of casual, and then a series of problems, can not solve, WordPress version update quickly, but the template update degree is relatively slow, especially some personal editing templates, Some templates are not adapted to the new version of WordPress, this will lead to site problems, there is no need to use the new version every time, the appropriate choice, is the hard truth.

Second, the Site URL settings: wordpress is dynamic, dynamic for the site's collection, ranking are affected, most of them to achieve pseudo static, which is conducive to web site optimization, how to distinguish between dynamic or static, very simple, look at the website site has "?", there is dynamic, no is static.

1, depends on the host you use is Linx or windows,wordpress on the Linux host performance is stronger than the Windows host, I used the Windows host, the next how to achieve pseudo static?

To create a Httpd.ini file, this file is placed in the root directory of the site, this Httpd.ini rule is currently used by two, you are the appropriate choice.

Reference

[isapi_rewrite]# Protect Httpd.ini and Httpd.parse.errors files# from accessing through http# # form:/postid.html# # Custom Semantic link/%post_id%.htmlrewriterule/tags/(. *)/index\.php\?tag=$1rewriterule/(about|contact|about-copyright|favor| archives|tags|sitemap|link|help|security|%e5%85%b3%e4%ba%8e)/index\.php\?pagename=$1rewriterule/category/(. *)/ (Feed|rdf|rss|rss2|atom)/?1&feed=$2rewriterule/category/? (. *)/index\.php\?category_name=$1rewriterule/author/(. *)/(Feed|rdf|rss|rss2|atom)/?1&feed=$2rewriterule/ Author/? (. *)/index\.php\?author_name=$1rewriterule/rss.xml/wp-feed\.php/\?feed=rss2rewriterule/feed/?$/wp-feed\.php/\? feed=rss2rewriterule/comments/feed/?$/wp-feed\.php/\?feed=comments-rss2rewriterule/([0-9]+). html/index\.php\?p =$1 [i]rewriterule/page/(. *)/?s= (. *)/index\.php\?s=1rewriterule/page/(. *)/index\.php\?paged=$1rewriterule/date/ ([0-9]{4}) ([0-9]{1,2}) ([0-9]{1,2})/([^/]+)/? ([0-9]+)/?1&monthnum=3&name=5rewriterule/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?1&monthnum=3&page=/index\.php\?year=2&page=$3rewriterule/([0-9]+). HTML (feed|rdf|rss|rss2 |atom)/index\.php\?feed=rss2&p=$1rewriterule/([0-9]+). html/trackback/wp-trackback\.php\?p=$1

This is the current rule of the Peng blog.

Article

[Isapi_rewrite] # Protect Httpd.ini and Httpd.parse.errors files # from accessing through HTTP # # form:/postid.html # # Custom links/%post_id%.html rewriterule/tags/(. *)/index\.php\?tag=$1 Rewriterule/(about|contact|about-copyright|favor| archives|tags|sitemap|link|help|security|%e5%85%b3%e4%ba%8e)/index\.php\?pagename=$1 rewriterule/category/(. *)/ (feed|rdf|rss|rss2|atom)/?$/wp-feed\.php\?category_name=$1&feed=$2 rewriterule/category/? (. *)/index\.php\?category_name=$1 rewriterule/author/(. *)/(Feed|rdf|rss|rss2|atom)/?$/wp-feed\.php\?author_name =$1&feed=$2 rewriterule/author/? (. *)/index\.php\?author_name=$1 rewriterule/rss.xml/wp-feed\.php/\?feed=rss2 rewriterule/feed/?$/wp-feed\.php/\? Feed=rss2 rewriterule/comments/feed/?$/wp-feed\.php/\?feed=comments-rss2 rewriterule/([0-9]+). html/index\.php\?p =$1 [I] rewriterule/page/(. *)/?s= (. *)/index\.php\?s=$2&paged=$1 rewriterule/page/(. *)/index\.php\?paged=$1 rewriterule/date/([0-9]{4}) ([0-9]{1,2}) ([0-9]{1,2})/([^/]+)/? ([0-9]+)/?$/index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5 rewriterule/date/([0-9]{4}) /([0-9]{1,2})/([0-9]{1,2})/?$/index\.php\?year=$1&monthnum=$2&day=$3&page=$4 rewriterule/date/([0-9 ]{4})/([0-9]{1,2})/?$/index\.php\?year=$1&monthnum=$2&page=$3 rewriterule/([0-9]+). HTML (feed|rdf|rss| Rss2|atom)/index\.php\?feed=rss2&p=$1 rewriterule/([0-9]+). html/trackback/wp-trackback\.php\?p=$1

This is another rule. Look at the choice you choose, the right choice, the thing is dead, the person is alive.

2, the site background fixed link settings. There are many types of links, but conducive to site optimization links, I think there are three kinds:

(1)/%category%/%postname%.html directory + article name

(2)/%category%/%post_id%.html directory + Article ID

(3)/%postname%.html article name

3, the third Peng Blog selected is the second. In this, if the friends in the URL settings have a directory to pay attention to, you will find that your Web site will be more than category this level of directory, the equivalent of a layer of your directory, this directory is not necessary, not conducive to the optimization of the site, to say a way to remove category this layer of directory, using "WP No Category Base "plug-in, to download a, open on it, very convenient.

4, the next "/%postname%.html" article name setting, if friends set up such a link, the middle sometimes URL will appear garbled situation, because the Web site does not recognize the Chinese, how to solve this situation? Recommended "Cos_slug_translator" Plug-ins, Its role is the title of Chinese automatically translated into English, do not need each translation, automatic translation function, very convenient, but also conducive to SEO optimization.

Above two points, I hope the new friends in the station can pay attention to reduce in the aspect of excessive waste of time, improve work efficiency, get good results.

2011-7-7

This article first address Peng-network data Analysis blog http://www.9gaopeng.com/(reprint please keep)

Related Article

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.