中国和阿曼足球直播时间/法国球员/k联赛/体球网足球即时比分 - 丹东一句定三码牛彩网

Win主機(jī)設(shè)置站內(nèi)站W(wǎng)ordPress偽靜態(tài)的方法
  發(fā)表時(shí)間:2017-03-28 07:39:31

Win主機(jī)設(shè)置站內(nèi)站W(wǎng)ordPress偽靜態(tài)的方法
今天天驕科技膠南做公司公司小編,安裝了站內(nèi)戰(zhàn)blog,在為blog修改為了固定鏈接以后,

出現(xiàn)了打開文章以后跳轉(zhuǎn)到404頁(yè)面的問(wèn)題,那么關(guān)于造成這個(gè)問(wèn)題的原因,我百度了一下,
是因?yàn)闆](méi)有為blog設(shè)置偽靜態(tài),那么關(guān)于偽靜態(tài)如何設(shè)置,就不詳述,下面直接貼出代碼,
上面這一組是301設(shè)置,下面那組就是實(shí)現(xiàn)一級(jí)目錄博客的偽靜態(tài)設(shè)置,
這樣設(shè)置好以后把httpd.ini文件上傳至空間根目錄即可

[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteCond Host: ^puatime\.com$
RewriteRule (.*) http\://www\.puatime\.com$1 [I,R]


[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /blog/sitemap.xml /blog/sitemap.xml [L]
RewriteRule /blog/favicon.ico /blog/favicon.ico [L]
# For tag
RewriteRule /blog/tag/(.*)/page/(\d+)$ /blog/index\.php\?tag=$1&paged=$2
RewriteRule /blog/tag/(.+)$ /blog/index\.php\?tag=$1
# For category
RewriteRule /blog/category/(.*)/page/(\d+)$ /blog/index\.php\?category_name=$1&paged=$2
RewriteRule /blog/category/(.*) /blog/index\.php\?category_name=$1
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /blog/wp-(.*) /blog/wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/blog/$ /blog/index.php [L]
RewriteRule /blog/(.*) /blog/index.php/$1 [L]
#For page
RewriteRule /blog/page/(.*)/?s=(.*) /blog/index\.php\?s=$2&paged=$1
RewriteRule /blog/page/(.*) /blog/index\.php\?paged=$1