Non-404 page WordPress pseudo-static method

Source: Internet
Author: User

Today, I was tossing about how to implement pseudo-static emlog on a Windows host. Because my local environment is a linux environment, I cannot test its validity. As a result, I am disturbing customer service, I found that this method also applies to Wordpress. I will share the implementation process below, hoping to help my colleagues in the same situation.
 
Open the VM control panel and click "ISAPI filter settings". There are three options: Enable URL static support for common systems; Enable custom URL static support; enable static URL support for ShopEx4.8.
 
I once tried the first option: Enable URL static support for common systems, but it was successful. Finally, use the second item: Enable static support for custom URLs to achieve pseudo-static. After this item is enabled, ISAPI_RewriteSnapin.dll and Rewrite are added under/others/discuz in the root directory of the website. dll, error. log, httpd. conf files. Now you want to edit httpd. conf file, I directly paste it all out, which defaults to 301 redirection:
 
[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# The default 301 setting is included. In this case, dreamxyt.net/aa.htm jumps 301 to www.dreamxyt.net/aa.htm and replaces dreamxyt.net with your own domain name to achieve 301 of your 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 can be deleted if they are not required or conflict with your website program. (The default code here is deleted. The following code is dedicated to Wordpress)
RewriteRule/avatar/(. *)/avatar/$1 [L]
RewriteRule/sitemap_baidu.xml [L]
RewriteRule/sitemap. xml/sitemap. xml [L]
RewriteRule/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 [L] lines are based on my actual situation.
 
The first sentence is: my blog reader wall uses the cache avatar mechanism, and the cache folder is the avatar in the root directory.
 
The meaning of the second sentence is as follows: Just because I installed two map generation plug-ins (one Google, one Baidu), I need to add this.
 
After completing the above operations, go to the Wordpress background settings-Fixed Link-custom structure: commonly used settings include/Rewrite post_id%.html, which is in the format of webpage/47.html. Confirm the article page after the change, the classification page implements pseudo-static.
 
Emlog implements the pseudo-static method on Windows Hosts. This is the most prominent part of the pseudo-static rules emlog forum. I will not copy them.
 
Reprinted please indicate the source: http://www.dreamxyt.net/445.html

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.