91精品国产综合久久精品图片,77thz桃花论族在线观看,亚洲三区视频,国产色婷婷国产综合在线理论片a

您好!歡迎來到導(dǎo)航啦! 提交網(wǎng)站流程->注冊會員->提交網(wǎng)站->等待審核...
數(shù)據(jù)統(tǒng)計:131個主題分類,24758個優(yōu)秀站點,0個站點正在排隊審核,635篇站長資訊
*
【通知】 測試。

最新可用的ASP偽靜態(tài)規(guī)則”hpptd.ini“規(guī)則

來源:本站原創(chuàng) 瀏覽:707次 時間:2015-11-25

實現(xiàn)asp偽靜態(tài)化首先要服務(wù)器空間要支持rewrite重寫,然后是URL Rewrite中的httpd.ini偽靜態(tài)化規(guī)則編寫,偽靜態(tài)Rewrite規(guī)則編寫方法是新建一個httpd.ini,里面寫上類似如下代碼,再將寫好的httpd.ini上傳到你網(wǎng)站的根目錄下,這里列舉的是我司制作一個網(wǎng)站所用到的偽靜態(tài)規(guī)則,當(dāng)然每個人的網(wǎng)站,規(guī)則寫得當(dāng)然不一樣,但形式是差不多的, 正如我司常用的偽靜態(tài)規(guī)則,如:

shownews.asp?id=xx可寫偽靜態(tài)規(guī)則 
RewriteRule /shownews-([0-9,a-z]*).html /shownews.asp\?id=$1

如后面帶參數(shù)如BigClassName=一個大類&SmallClassName=一個小類,這樣的規(guī)則可寫成RewriteRule /product-(.*?)-(.*?).html /product.asp\?BigClassName=$1&SmallClassName=$2,這規(guī)則里面用到的都是寫正則表達式,想了解正在表達式可以在網(wǎng)上看下相關(guān)的資料。 

[ISAPI_Rewrite] 
# 3600 = 1 hour 
CacheClockRate 3600 
RepeatLimit 32 
# Block external access to the httpd.ini and httpd.parse.errors files 

RewriteRule /shownews-([0-9,a-z]*).html /shownews.asp\?id=$1 

RewriteRule /showproduct-([0-9,a-z]*).html /showproduct.asp\?id=$1 

RewriteRule /noteshow-([0-9,a-z]*).html /noteshow.asp\?id=$1 

RewriteRule /news-(.*?).html /news.asp\?BigClassName=$1 

RewriteRule /about-(.*?).html /about.asp\?BigClassName=$1 

RewriteRule /product-(.*?).html /product.asp\?BigClassName=$1 

RewriteRule /product-(.*?)-(.*?).html /product.asp\?BigClassName=$1&SmallClassName=$2 

RewriteRule /news-(.*?)-(.*?).html /news.asp\?BigClassName=$1 [N,I,L,O]&SmallClassName=$2 [N,I,L,O] 

RewriteRule /product-(.*?)-([0-9,a-z]*).html /product.asp\?BigClassName=$1 [N,I,L,O]&page=$2 

RewriteRule /news-(.*?)-([0-9,a-z]*).html /news.asp\?BigClassName=$1 [N,I,L,O]&page=$2 

RewriteRule /news-(.*?)-(.*?)-([0-9,a-z]*).html /news.asp\?BigClassName=$1&SmallClassName=$2 [N,I,L,O]&page=$3 

RewriteRule /product-(.*?)-(.*?)-([0-9,a-z]*).html /product.asp\?BigClassName=$1&SmallClassName=$2 [N,I,L,O]&page=$3 

RewriteRule /notebook-(.*?)-(.*?)-([0-9,a-z]*).html /notebook.asp\?BigClassName=$1&SmallClassName=$2 [N,I,L,O]&page=$3 

RewriteRule /notebook-([0-9,a-z]*).html /notebook.asp\?page=$1 

RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O] 
# Block external access to the Helper ISAPI Extension 
RewriteRule .*\.isrwhlp / [F,I,O] 
RewriteRule /index.html /index.asp $1 
RewriteRule /news.html /news.asp $1 
RewriteRule /notebook.html /notebook.html $1 

RewriteRule .*\.isrwhlp / [F,I,O] RewriteRule /index.html /index.asp $1RewriteRule /news.html /news.asp $1RewriteRule /notebook.html /notebook.html $1

下面還有種寫法,我沒用過,是網(wǎng)上別人那復(fù)制過來的 

httpd.ini 內(nèi)容寫法如下: 

[ISAPI_Rewrite] 
# 3600 = 1 hour 
CacheClockRate 3600 
RepeatLimit 32 
# Block external access to the httpd.ini and httpd.parse.errors files 
RewriteRule /httpd(?:.ini|.parse.errors).* / [F,I,O] 
# Block external access to the Helper ISAPI Extension 
RewriteRule .*.isrwhlp / [F,I,O] 
RewriteRule ^(.*)/index.asp $1/index.html 
RewriteRule ^(.*)/([0-9]*).html $1/article.asp?id=$2 
RewriteRule ^(.*)/([a-z]*)/([a-z]*)/ $1/list.asp?x=$2&y=$3 

該規(guī)則具體說明: 


RewriteRule ^(.*)/index.asp $1/index.html 

是將index.asp 偽靜態(tài)為index.html

RewriteRule ^(.*)/([0-9]*).html $1/article.asp?id=$2 

文章頁偽靜態(tài),把article.asp?id=xxx映射成 /xxx.html ,其中xxx為文章ID號,在article.asp中接收id, id=request(“id”), 根據(jù)ID由數(shù)據(jù)庫中取數(shù)據(jù)即可;

RewriteRule ^(.*)/([a-z]*)/([a-z]*)/ $1/list.asp?x=$2&y=$3 

文章列表頁偽靜態(tài), 把/list.asp?x=$2&y=$3 映射成 如:/news/sports/ 格式,$2對應(yīng)news,$3對應(yīng) sports ,在數(shù)據(jù)庫中取news中sports文章顯示即可;其中([a-z]*)代表任意字母,([0-9]*)代表數(shù)字;


怎么樣,這個httpd.ini的ASP偽靜態(tài)規(guī)則還不錯吧~

推薦站點

  • 網(wǎng)站庫網(wǎng)站庫

    網(wǎng)站庫是全人工編輯的開放式網(wǎng)站分類目錄,收錄國內(nèi)外、各行業(yè)優(yōu)秀網(wǎng)站,旨在為用戶提供更全面的網(wǎng)站分類目錄檢索、優(yōu)秀網(wǎng)站參考、網(wǎng)站推廣服務(wù)、網(wǎng)站黃頁、網(wǎng)上娛樂沖浪導(dǎo)航網(wǎng)站。

    www.wangzhanku.com
  • 娛樂網(wǎng)知娛樂網(wǎng)知

    娛樂網(wǎng)知分類目錄-免費外鏈、免費網(wǎng)址收錄、免費網(wǎng)站收錄,娛樂網(wǎng)知分類目錄完全免費網(wǎng)址目錄收錄平臺.

    www.yulewangzhi.com
  • 網(wǎng)站庫網(wǎng)站庫

    網(wǎng)站庫,免費網(wǎng)站收錄,網(wǎng)站目錄,分類目錄,,免費收錄國內(nèi)外、各行業(yè)優(yōu)秀網(wǎng)站。

    www.wangzhanku.cn
  • 導(dǎo)航啦網(wǎng)站目錄導(dǎo)航啦網(wǎng)站目錄

    導(dǎo)航啦分類目錄-您網(wǎng)上沖浪導(dǎo)航專家!導(dǎo)航啦分類目錄-專業(yè)提供為廣大站長收錄的開放式網(wǎng)站分類目錄平臺,收集國內(nèi)外、各行業(yè)優(yōu)秀正規(guī)網(wǎng)站,全人工編輯收錄,為百度、谷歌、有道、搜狗、必應(yīng)等搜索引擎提供索引參考, 同時也是站長推廣網(wǎng)站值得信任選擇的平臺。

    www.xahmfloor.com
  • 導(dǎo)航呀導(dǎo)航呀

    導(dǎo)航呀分類目錄www.daohangya.cn免費收錄各類優(yōu)秀網(wǎng)站、網(wǎng)址的網(wǎng)站目錄,提供網(wǎng)址、網(wǎng)站目錄檢索,關(guān)鍵字搜索,網(wǎng)址搜索一站式網(wǎng)站目錄上網(wǎng)導(dǎo)航,免費提交網(wǎng)址、網(wǎng)站即可快速提升網(wǎng)站品牌形象。

    www.daohangya.cn
  • 藥方大全網(wǎng)藥方大全網(wǎng)

    本站為您搜集整理了大量的驗方偏方秘方古方等中藥方(中藥方劑)八萬多個。你是你自己的中醫(yī),我是你的中藥方!中醫(yī)中藥秘方網(wǎng),偏方大全愿為您的健康保駕護航。

    www.zhongyf.com
主站蜘蛛池模板: 确山县| 巴东县| 民乐县| 土默特右旗| 巴楚县| 和龙市| 台前县| 万安县| 青川县| 石台县| 莆田市| 抚州市| 横山县| 汉源县| 双城市| 天水市| 广灵县| 武冈市| 东乡| 漳浦县| 龙川县| 开远市| 汤原县| 平遥县| 新巴尔虎右旗| 磐安县| 河东区| 河间市| 迁安市| 龙山县| 蚌埠市| 朝阳市| 万宁市| 会同县| 沛县| 西充县| 迁西县| 广灵县| 开化县| 司法| 叶城县|