我們看下面這段代碼:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600 RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP # wordpress
# For tag RewriteRule /tag/(.*)/page/(\d+)$ /index\.php\?tag=$1&paged=$2
RewriteRule /tag/(.+)$ /index\.php\?tag=$1
# For category 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 /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]
我們把這段代碼復(fù)制粘帖到一個(gè)文本文件里面,然后另存為名稱是httpd格式是ini的文件,上傳到我們網(wǎng)站根目錄(也就是虛擬主機(jī)web文件夾里面)即可。
如果您不會(huì)操作,可以直接去下載我們做好了的文件,上傳到我們網(wǎng)站根目錄(也就是虛擬主機(jī)web文件夾里面)就行了。
這樣操作后,設(shè)置偽靜態(tài)后就能生效了生效了
點(diǎn)擊我下載wordpress博客系統(tǒng)偽靜態(tài)規(guī)則(規(guī)則提取密碼:an5j)
云立方網(wǎng)產(chǎn)品導(dǎo)航: 動(dòng)態(tài)撥號(hào)vps 服務(wù)器租用 撥號(hào)服務(wù)器 |