The method of realizing pseudo-static in non-404 pages of WordPress

Source: Internet
Author: User
Keywords WordPress

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

It was a emlog today. How to implement pseudo static under Windows host, because my local is Linux environment, can't test its validity, so I went to nagging customer service, after some so, found this method also applies to wordpress, below I share the realization process, I hope I can help the students who are the same as me.

Open the Virtual Host Control Panel and click ISAPI Filter settings, which has three options: Open URL static support for common systems; Open custom URL static support; open ShopEx4.8 URL static support.

I have tried the first item: Open URL static support for common systems, but Wood has success. Finally, through the second item: Open the custom URL static support to achieve pseudo static, after the entry of the site root directory/others/discuz more than Isapi_rewritesnapin.dll,rewrite.dll,error.log, httpd.conf four files, now to edit the httpd.conf file, I directly put it all posted out, inside the default there are 301 turn:

[Isapi_rewrite] # 3600 = 1 hour cacheclockrate 3600 repeatlimit #默认包含了301设置, in which case dreamxyt.net/aa.htm 301 jumps to Www.dreamx yt.net/aa.htm, replace dreamxyt.net with your own domain name Rewritecond%{http:host} ^dreamxyt.net$ rewriterule (. *) http:// www.dreamxyt.net$1 [nc,r=301] #Discuz! X and Discuz x1.5 pseudo static rules that can be removed if not required or conflicting with your Web site program. (Here The default code I deleted, the following is dedicated to WordPress) rewriterule/avatar/(. *)/avatar/$1 [l] Rewriterule/sitemap_baidu.xml/sitemap_ Baidu.xml [l] rewriterule/sitemap.xml/sitemap.xml [l] rewriterule/sitemap.html/sitemap.html [l] rewriterule/favicon. Ico/favicon.ico [L] # for file-based WordPress content (i.e. theme), admin, etc. rewriterule/wp-(. *)/wp-$1 [l] # for normal WordPress content, via index.php rewriterule ^/$/index.php [l] Rewriterule/ (. *)/index.php/$1 [L]

The rewriterule/avatar/(. *)/avatar/$1 [L]; Rewriterule/sitemap_baidu.xml/sitemap_baidu.xml [L] These two lines are based on my own actual situation.

The meaning of the first sentence is: my blog reader wall is a caching avatar mechanism, the cache folder is this avatar in the root directory.

The meaning of the second sentence is: the same as the latter two, just because I installed two map-generated plug-ins (a Google, a Baidu), so need to add this.

After doing the above, and then to the WordPress background settings-fixed links-custom structure: Commonly used settings have/%post_id%.html, come out is the Web page/47.html this format, to determine the changes after the article page, classification pages are implemented pseudo static.

Emlog in the Windows host to implement pseudo static method and this same, pseudo static rules Emlog forum The most eye-catching place there, I will not go to the cuff.

Reprint please indicate the source: http://www.dreamxyt.net/445.html

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.