新聞中心
點(diǎn)擊排行
- 膠南網(wǎng)站建設(shè)中flash優(yōu)化的經(jīng)驗(yàn)分享
- 如何讓網(wǎng)站二十四小時(shí)時(shí)刻更新
- ECSHOP提高百度收錄量的技巧
- 關(guān)于錨文本你必須注意這一點(diǎn)
- 網(wǎng)站建設(shè)小編分享一個(gè)很好的SEO思路
- 膠南網(wǎng)站制作與優(yōu)化排名的心得分享
- 網(wǎng)站優(yōu)化中忘記你的目標(biāo)關(guān)鍵詞
- 網(wǎng)站優(yōu)化的實(shí)踐方式
- 膠南網(wǎng)站建設(shè)公司seo體會(huì)
- 膠南網(wǎng)站建設(shè)網(wǎng)頁(yè)訪問(wèn)的過(guò)程
- 網(wǎng)頁(yè)Web與網(wǎng)絡(luò)
- 膠南網(wǎng)站建設(shè)互聯(lián)網(wǎng)構(gòu)成的延伸思維
- 網(wǎng)站排名工作中我對(duì)錨文本的看法
- 網(wǎng)站優(yōu)化排名編輯軟文的小竅門
- [轉(zhuǎn)]我的SEO學(xué)習(xí)分享
- 膠南網(wǎng)站建設(shè)中SEO因素的融合
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修改為了固定鏈接以后,
#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
今天天驕科技膠南做公司公司小編,安裝了站內(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文件上傳至空間根目錄即可
#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