Pseudo-static settings for WordPress programs in Win and Linux systems

Source: Internet
Author: User

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

This is a very early to write the article, and yesterday, a friend asked me, why not write about the pseudo static WordPress settings? Today's article I will tell you about the WordPress program in Win and Linux system under the pseudo static setting method.

The first type: Win system under the WordPress program pseudo static.

WordPress in the win system under the pseudo static premise is that the space system to support pseudo static settings, and we know that the general win system supports the pseudo static rules for Httpd.ini format, then we first create a new text document, the following code copy paste in the inside ( This is the perfect win system pseudo static rule that I have collected so far.

[Isapi_rewrite] # 3600 = 1 hour cacheclockrate 3600 Repeatlimit # Protect Httpd.ini and httpd.parse.errors files # fro M accessing through HTTP # wordpress pseudo static Rule # for Tag (Chinese Label and tab-page rules) rewriterule/tag/(. *)/page/(d+) $/index.php?tag=$1&amp ;p aged=$2 rewriterule/tag/(. +) $/index.php?tag=$1 # for category (Chinese classification and category paging rules) rewriterule/category/(. *)/page/(d+) $ /index.php?category_name=$1&paged=$2 rewriterule/category/(. *)/index.php?category_name=$1 # for Sitemapxml Rewriterule/sitemap.xml/sitemap.xml [l] rewriterule/sitemap.html/sitemap.html [l] Rewriterule/sitemap_baidu.xml/ Sitemap_baidu.xml [l] Rewriterule/favicon.ico/favicon.ico [l] # for file-based WordPress content (i.e. theme), admin, et C. rewriterule/wp-(. *)/wp-$1 [l] # for normal WordPress content, via index.php rewriterule ^/$/index.php [l] Rewriterul E/(. *)/index.php/$1 [L]

After copying and pasting the above code into a text document, we then save the text as a httpd.ini, so that our pseudo static rules are ready, we just upload the file to the space directory, if in the background → fixed link select custom link input/%category%/%post_id%. HTML or/%post_id%.html Click to save, which we also need a plug-in support, that is to remove the middle of the classification URL Category, we only need to plug in the background → install plug-ins that search WP No Category Base, Installation is enabled. So we win system under the WordPress program pseudo static completed.

Second: pseudo-static settings for Linux systems

This one is very simple, we know the Linux system itself using WordPress is the most perfect system, its pseudo static settings are very simple, we only need to be in the background → fixed link select custom link input/%category%/%post_id%.html or/% post_id%.html Click to save it. Similarly it also needs to cooperate with WP No CATEGORY base plug-in, below I will be the Linux system support. htaccess pseudo static rule content write out. The code is as follows:

# BEGIN WordPress <ifmodule mod_rewrite.c> rewriteengine on Rewritebase/rewriterule ^index.php$-[L] Rewrit Econd%{request_filename}!-f rewritecond%{request_filename}!-d rewriterule. /index.php [L] </IfModule> end WordPress

The above code is the same, we need to create a new text document, and then copy the code to paste in, click Save as A. htaccess file, and then upload this file to the space root directory to complete. This article is written here, I hope that those who do not know how to use the WordPress program pseudo static How to set up a friend some help, if you have nothing to understand, you can leave a message to me, thank you!

This article from the tension blog original writing, reproduced please specify the URL: http://zhangliseo.com/820.html, thank you!

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.