時間:2023-06-26 07:45:02 | 來源:網(wǎng)站運營
時間:2023-06-26 07:45:02 來源:網(wǎng)站運營
windows VPS中wordpress偽靜態(tài)規(guī)則:為了讓windows VPS的偽靜態(tài)生效,需要提前準備wordpress的偽靜態(tài)腳本httpd.ini文件。[ISAPI_Rewrite]保持文檔后,把文檔重新命名為httpd.ini,記得把擴展名.txt改成.ini
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# wordpress 偽靜態(tài)規(guī)則
# For tag(中文標簽以及標簽翻頁的規(guī)則)
RewriteRule /tag/(.*)/page/(/d+)$ /index/.php/tag=$1&paged=$2
RewriteRule /tag/(.+)$ /index/.php/tag=$1
# For category(中文分類以及分類翻頁的規(guī)則)
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, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]
關(guān)鍵詞:靜態(tài),規(guī)則
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。