欧美3p在线观看一区二区三区_国产一区二区三区欧美精品_欧美一区二区三区精品_第一福利所导航 - 狠狠操综合网

商盟互聯(lián)
商盟互聯(lián)網(wǎng)站域名注冊(cè),空間購(gòu)買(mǎi)
幫助中心| 會(huì)員專區(qū) | 在線充值 | 在線咨詢QQ:1686859008 | 服務(wù)熱線:15683841895
注冊(cè)會(huì)員 忘記密碼
VPS怎么通過(guò)偽靜態(tài)組件設(shè)置301? 更多內(nèi)容,請(qǐng)登錄會(huì)員查看

空間購(gòu)買(mǎi)提示:主機(jī)操作系統(tǒng)選擇(Windows系統(tǒng)的,是支持ASP的;Linux系統(tǒng)的,是支持PHP的)不要選擇錯(cuò)了哦;

網(wǎng)站域名注冊(cè)提示:域名所有者(個(gè)人)的填寫(xiě)身份證姓名(公司)的填寫(xiě)公司名稱,不要填寫(xiě)錯(cuò)了哦!

網(wǎng)站動(dòng)態(tài)

首頁(yè) >> 本站通知 >> VPS怎么通過(guò)偽靜態(tài)組件設(shè)置301?

VPS怎么通過(guò)偽靜態(tài)組件設(shè)置301?

分享到:

1、首先需要為服務(wù)器配置好偽靜態(tài)(Windows:ISAPI_Rewrite,Linux:mod_rewrite)

2、上傳偽靜態(tài)規(guī)則到站點(diǎn)根目錄下就可以了。

httpd.ini

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteCond Host: ^domain\.com$
RewriteRule (.*) http\://www\.domain\.com$1 [RP,I]

.htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]