Step 1: Open the Apache-> conf-> httpd. conf file, or enter and search from the position shown in the preceding figure.
# LoadModule rewrite_module modules/mod_rewrite.so remove the previous #
Step 2: Change "AllowOverride None" to "AllowOverride All ".;
Step 3: restart apache
Step 4: create a new. haccess file, store it in the root directory of the current website, and write pseudo-static rules in the. haccess file. See the example.
RewriteEngine on
RewriteBase/
RewriteRule ^ article \. html $/article. php
RewriteRule ^ article \ _ (+) \. html $/article. php? Page = $1
The following is a pseudo-static wordpress configuration rule.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^ index \. php $-[L]
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule./blog/index. php [L]
RewriteRule ^ (. *) (xmlrpc) + (. *) $ http://www.111cn.net/301 MB. test [NC, R =, L]
</IfModule>
This completes. Of course, the above code can be added directly to the conf file.