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

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

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

來源:本站原創(chuàng) 瀏覽:803次 時間: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ī)則,當然每個人的網(wǎng)站,規(guī)則寫得當然不一樣,但形式是差不多的, 正如我司常用的偽靜態(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)航啦導(dǎo)航啦

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

    m.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
主站蜘蛛池模板: 和政县| 梁山县| 同仁县| 鄂托克前旗| 广东省| 集安市| 霍邱县| 搜索| 镇康县| 宜昌市| 青冈县| 汉阴县| 泰宁县| 安福县| 武定县| 洪洞县| 京山县| 抚远县| 永城市| 临猗县| 昌都县| 香格里拉县| 磐石市| 石林| 旌德县| 聂拉木县| 罗平县| 平果县| 太谷县| 永清县| 商洛市| 卓资县| 定远县| 弥勒县| 恭城| 颍上县| 永吉县| 旌德县| 晋州市| 陵水| 德庆县|