本文小編為大家詳細(xì)介紹“Typecho程序偽靜態(tài)規(guī)則有哪些”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“Typecho程序偽靜態(tài)規(guī)則有哪些”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來學(xué)習(xí)新知識吧。
叢臺ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!1、linux apache環(huán)境(.htaccess):
復(fù)制代碼 代碼如下:
<ifmodule mod_rewrite.c>
rewriteengine on
# 下面是在根目錄,文件夾要修改路徑,如 /laozuo/
rewritebase /
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewriterule ^(.*)$ /index.php/$1 [l]
# 帶 www 的跳轉(zhuǎn)到不帶的
rewritecond %{http_host} ^www.laozuo.org
rewriterule (.*) /tupian/20230522/3939.html [r=301,l]
# 不帶 www 的跳轉(zhuǎn)到帶的
rewritecond %{http_host} ^laozuo.org
rewriterule (.*) /tupian/20230522/3939.html [r=301,l]
</ifmodule>
2、linux apache環(huán)境(nginx):
復(fù)制代碼 代碼如下:
location / {
index index.html index.php;
if (-f $request_filename/index.html) {
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php) {
rewrite (.*) $1/index.php;
}
if (!-f $request_filename) {
rewrite (.*) /index.php;
}
}
3、windows iis偽靜態(tài)(httpd.ini):
復(fù)制代碼 代碼如下:
[isapi_rewrite]
# 3600 = 1 hour
cacheclockrate 3600
repeatlimit 32
# 中文tag解決
rewriterule /tag/(.*) /index\.php\?tag=$1
# sitemapxml
rewriterule /sitemap.xml /sitemap.xml [l]
rewriterule /favicon.ico /favicon.ico [l]
# 內(nèi)容頁
rewriterule /(.*).html /index.php/$1.html [l]
# 評論
rewriterule /(.*)/comment /index.php/$1/comment [l]
# 分類頁
rewriterule /category/(.*) /index.php/category/$1 [l]
# 分頁
rewriterule /page/(.*) /index.php/page/$1 [l]
# 搜索頁
rewriterule /search/(.*) /index.php/search/$1 [l]
# feed
rewriterule /feed/(.*) /index.php/feed/$1 [l]
# 日期歸檔
rewriterule /2(.*) /index.php/2$1 [l]
# 上傳圖片等
rewriterule /action(.*) /index.php/action$1 [l]
讀到這里,這篇“Typecho程序偽靜態(tài)規(guī)則有哪些”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識點(diǎn)還需要大家自己動手實(shí)踐使用過才能領(lǐng)會,如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
網(wǎng)頁名稱:Typecho程序偽靜態(tài)規(guī)則有哪些-創(chuàng)新互聯(lián)
本文地址:http://aaarwkj.com/article46/dohhhg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、網(wǎng)站排名、用戶體驗(yàn)、小程序開發(fā)、微信小程序、品牌網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容