【騰訊云】云服務器等爆品搶先購,低至4.2元/月、258元/三年

35dir目錄分類商業(yè)版源碼是一個古老的網(wǎng)址大全網(wǎng)站程序!雖然開發(fā)者已停止更新了,但還是有很多站長在使用這套程序建立網(wǎng)站。小編在淘寶上花了50元購買了35dir目錄分類商業(yè)版源碼,是經(jīng)過二次開發(fā)優(yōu)化。今天這篇文章是與大家分享下35dir目錄分類商業(yè)版源碼、apache偽靜態(tài)規(guī)則、nginx偽靜態(tài)規(guī)則代碼:

35dir目錄分類商業(yè)版 – 下載地址

● Apache偽靜態(tài)規(guī)則 (網(wǎng)站URL鏈接結構設置選擇”文件型”)

RewriteEngine On
RewriteBase /
# BEGIN
# 首頁、分類瀏覽、數(shù)據(jù)歸檔、最近更新、排行榜、意見反饋
RewriteRule ^(index|city|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(\/?).html$ index.php\?mod=$1
# 最近更新
RewriteRule ^update-(\d+)-1.html$ index.php\?mod=update&days=$1
RewriteRule ^update-(\d+)-(\d+).html$ index.php\?mod=update&days=$1&page=$2
# 數(shù)據(jù)歸檔
RewriteRule ^archives-(\d+)-1.html$ index.php\?mod=archives&date=$1
RewriteRule ^archives-(\d+)-(\d+).html$ index.php\?mod=archives&date=$1&page=$2
RewriteRule ^archives-(\d+)-(\d+).html$ index.php\?mod=archives&date=$1&page=$2
RewriteRule ^archives-0-(\d+).html$ index.php\?mod=archives&page=$1
# 站內(nèi)搜索
RewriteRule ^search-(name|url|tags|intro)-(.+)-(\d+).html$ index.php\?mod=search&type=$1&query=$2&page=$3
RewriteRule ^search-(name|url|tags|intro)-(.+).html$ index.php\?mod=search&type=$1&query=$2
# 站點詳細
RewriteRule ^siteinfo-(\d+).html$ index.php\?mod=siteinfo&wid=$1
# 文章詳細
RewriteRule ^artinfo-(\d+).html$ index.php\?mod=artinfo&aid=$1
# 鏈接詳細
RewriteRule ^linkinfo-(\d+).html$ index.php\?mod=linkinfo&lid=$1
# 單頁
RewriteRule ^diypage\/(\d+)$ index.php\?mod=diypage&pid=$1
# RSS
RewriteRule ^rssfeed\/(\d+)$ index.php\?mod=rssfeed&cid=$1
# SiteMap
RewriteRule ^sitemap\/(\d+).html$ index.php\?mod=sitemap&cid=$1
RewriteRule ^sitemap.xml$ index.php\?mod=sitemap
# 分類目錄
RewriteRule ^webdir-(.*)-(\d+)-1.html$ index.php\?mod=webdir&cid=$2
RewriteRule ^webdir-(.*)-(\d+)-(\d+).html$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^article-(.*)-(.+)-(\d+).html$ index.php\?mod=article&cid=$3
RewriteRule ^article-(.*)-(.+)-(\d+)-(\d+).html$ index.php\?mod=article&cid=$3&page=$4

● nginx偽靜態(tài)規(guī)則

rewrite ^/(index|article|webdir|category|update|archives|top|feedback|weblink|rssfeed|sitemap)(/?)$ /index.php?mod=$1 last;
rewrite ^/update/(\d+).html$ /index.php?mod=update&days=$1 last;
rewrite ^/update/(\d+)-(\d+).html$ /index.php?mod=update&days=$1&page=$2 last;
rewrite ^/archives/(\d+).html$ /index.php?mod=archives&date=$1 last;
rewrite ^/archives/(\d+)-(\d+).html$ /index.php?mod=archives&date=$1&page=$2 last;
rewrite ^/webdir/(.*)/(\d+)-1.html$ /index.php?mod=webdir&cid=$2 last;
rewrite ^/webdir/(.*)/(\d+)-(\d+).html$ /index.php?mod=webdir&cid=$2&page=$3 last;
rewrite ^/search/(name|url|tags|intro|pr|br)/(.+)-(\d+).html$ /index.php?mod=search&type=$1&query=$2&page=$3 last;
rewrite ^/search/(name|url|tags|intro|pr|br)/(.+).html$ /index.php?mod=search&type=$1&query=$2 last;
rewrite ^/siteinfo/(\d+).html$ /index.php?mod=siteinfo&wid=$1 last;
rewrite ^/artinfo/(\d+).html$ /index.php?mod=artinfo&aid=$1 last;
rewrite ^/linkinfo/(\d+).html$ /index.php?mod=linkinfo&lid=$1 last;
rewrite ^/diypage/(\d+).html$ /index.php?mod=diypage&pid=$1 last;
rewrite ^/rssfeed/(\d+).html$ /index.php?mod=rssfeed&cid=$1 last;
rewrite ^/sitemap/(\d+).html$ /index.php?mod=sitemap&cid=$1 last;
rewrite ^/(.+)/(\d+)-(\d+).html$ /index.php?mod=directory&cid=$2&page=$3 last;
rewrite ^/article/(.*)/(\d+)-1.html$ /index.php?mod=article&cid=$2 last;
rewrite ^/article/(.*)/(\d+)-(\d+).html$ /index.php?mod=article&cid$2&page=$3 last;

編者語:

如果上面的Apache偽靜態(tài)規(guī)則 (網(wǎng)站URL鏈接結構設置選擇”文件型”)無法使用,可以嘗試下面這個Apache偽靜態(tài)規(guī)則,只需要用代碼重新建立一個.htaccess文件覆蓋根目錄的該文件即可:

# BEGIN
RewriteEngine On
# 首頁、分類瀏覽、數(shù)據(jù)歸檔、最近更新、排行榜、意見反饋
RewriteRule ^(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(\.html)$ index.php\?mod=$1&%1
RewriteRule ^(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(\/?)$ index.php\?mod=$1
# 最近更新
RewriteRule ^update-(\d+)-(\d+)\.html$ index.php\?mod=update&days=$1&page=$2
RewriteRule ^update\/(\d+)-(\d+)\.html$ index.php\?mod=update&days=$1&page=$2
RewriteRule ^update\/(\d+)/(\d+)$ index.php\?mod=update&days=$1&page=$2
# 數(shù)據(jù)歸檔
RewriteRule ^archives-(\d+)-(\d+)\.html$ index.php\?mod=archives&date=$1&page=$2
RewriteRule ^archives\/(\d+)-(\d+)\.html$ index.php\?mod=archives&date=$1&page=$2
RewriteRule ^archives\/(\d+)/(\d+)$ index.php\?mod=archives&date=$1&page=$2
# 站內(nèi)搜索
RewriteRule ^search-(name|url|tags|intro)-(.*)-(\d+)\.html$ index.php\?mod=search&type=$1&query=$2&page=$3
RewriteRule ^search-(name|url|tags|intro)-(.*)\.html$ index.php\?mod=search&type=$1&query=$2
RewriteRule ^search\/(name|url|tags|intro)\/(.*)-(\d+)\.html$ index.php\?mod=search&type=$1&query=$2&page=$3
RewriteRule ^search\/(name|url|tags|intro)\/(.*)\.html$ index.php\?mod=search&type=$1&query=$2
RewriteRule ^search\/(name|url|tags|intro)\/(.+)/(\d+)$ index.php\?mod=search&type=$1&query=$2&page=$3
RewriteRule ^search\/(name|url|tags|intro)\/(.+)$ index.php\?mod=search&type=$1&query=$2
# 站點詳細
RewriteRule ^siteinfo-(\d+)\.html$ index.php\?mod=siteinfo&wid=$1
RewriteRule ^siteinfo\/(\d+)\.html$ index.php\?mod=siteinfo&wid=$1
RewriteRule ^siteinfo\/(\d+)$ index.php\?mod=siteinfo&wid=$1
# 文章詳細
RewriteRule ^artinfo-(\d+)\.html$ index.php\?mod=artinfo&aid=$1
RewriteRule ^artinfo\/(\d+)\.html$ index.php\?mod=artinfo&aid=$1
RewriteRule ^artinfo\/(\d+)$ index.php\?mod=artinfo&aid=$1
# 鏈接詳細
RewriteRule ^linkinfo-(\d+)\.html$ index.php\?mod=linkinfo&lid=$1
RewriteRule ^linkinfo\/(\d+)\.html$ index.php\?mod=linkinfo&lid=$1
RewriteRule ^linkinfo\/(\d+)$ index.php\?mod=linkinfo&lid=$1
# 單頁
RewriteRule ^diypage-(\d+)\.html$ index.php\?mod=diypage&pid=$1
RewriteRule ^diypage\/(\d+)\.html$ index.php\?mod=diypage&pid=$1
RewriteRule ^diypage\/(\d+)$ index.php\?mod=diypage&pid=$1
# RSS
RewriteRule ^rssfeed-(.+)-(\d+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2
RewriteRule ^rssfeed-(.+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2
RewriteRule ^rssfeed\/(.+)/$ index.php\?mod=rssfeed&type=$1
RewriteRule ^rssfeed\/(.+)/(\d+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2
RewriteRule ^rssfeed\/(.+)$ index.php\?mod=rssfeed&type=$1
RewriteRule ^rssfeed\/(.+)/(\d+)$ index.php\?mod=rssfeed&type=$1&cid=$2
# SiteMap
RewriteRule ^sitemap-(.+)\.html$ index.php\?mod=sitemap&cid=$1
RewriteRule ^sitemap\/(\d+)\/$ index.php\?mod=sitemap&cid=$1
RewriteRule ^sitemap\/(\d+)$ index.php\?mod=sitemap&cid=$1
# 分類目錄
RewriteRule ^webdir-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^webdir\/(.+)\/(\d+)-(\d+)\.html$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^webdir\/(.+)\/(\d+)/(\d+)$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^article-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=article&cid=$2&page=$3
RewriteRule ^article\/(.+)\/(\d+)-(\d+)\.html$ index.php\?mod=article&cid=$2&page=$3
RewriteRule ^article\/(.+)\/(\d+)/(\d+)$ index.php\?mod=article&cid=$2&page=$3
# END

文章鏈接http://m.cd-shengyuan.cn/38858.html
版權聲明:文章由本站原創(chuàng)或網(wǎng)友分享,禁止轉載!發(fā)布此文是出于傳遞更多信息之目的,若有來源標注錯誤或侵犯了您的合法權益,請與我們聯(lián)系(錯誤反饋),我們將及時更正、刪除,謝謝。
溫馨提示本站信息來自互聯(lián)網(wǎng)或網(wǎng)友分享,請大家查閱時,謹慎選擇、自辯真?zhèn)?,自負責任?/span>

相關推薦

支持快訊、專題、百度收錄推送、人機驗證、多級分類篩選器,適用于垂直站點、科技博客、個人站,扁平化設計、簡潔白色、超多功能配置、會員中心、直達鏈接、文章圖片彈窗、自動縮略圖等...

  1. <dfn id="264cq"></dfn>

    日韩AV电影免费观看 | 久久成人免费鸡巴视频 | 羽月希无码| av插b | 91精品少妇一区二区三区蜜桃臀 |