网站推广三步走:十秒注册 -> 提交网站 -> 快速审核 -> 带来无限流量和外链 -> 点入及点出一次即可排名第一位
当前位置:hao823分类目录 » 站长资讯 » 站长教程 » 文章详细 订阅RssFeed

35dir程序生成文件目录和伪静态修改方法

来源:优站网 浏览:640次 时间:2021-01-15

简介:35dir程序生成文件目录和伪静态修改方法

文件项配置如下:

# BEGIN
# 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈
RewriteRule ^


(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)


(\/?)$ index.php\?mod=$1
# 最近更新
RewriteRule ^update\/(\d+)$ index.php\?mod=update&days=$1
RewriteRule ^update\/(\d+)/(\d+)$ index.php\?mod=update&days=$1&page=$2
# 数据归档
RewriteRule ^archives\/(\d+)$ index.php\?mod=archives&date=$1
RewriteRule ^archives\/(\d+)/(\d+)$ index.php\?mod=archives&date=$1&page=$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+)$ index.php\?mod=siteinfo&wid=$1
# 文章详细
RewriteRule ^artinfo\/(\d+)$ index.php\?mod=artinfo&aid=$1
# 链接详细
RewriteRule ^linkinfo\/(\d+)$ 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+)$ index.php\?mod=sitemap&cid=$1
# 分类目录
RewriteRule ^webdir\/(.+)\/(\d+)$ index.php\?mod=webdir&cid=$2
RewriteRule ^webdir\/(.+)\/(\d+)/(\d+)$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^article\/(.+)\/(\d+)$ index.php\?mod=article&cid=$2
RewriteRule ^article\/(.+)\/(\d+)/(\d+)$ index.php\?mod=article&cid=$2&page=$3
# END

目录和文件型模式

 # BEGIN
RewriteEngine On
# 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈
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


# 数据归档
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


# 站内搜索
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




推荐站点

  • 秒支付秒支付

    真正的微信和支付宝个人版即时到账支付接口,无需提现,即时到账,100%资金安全,彩虹系统合作服务商,无需手续费,无需人工操作,是个人收款的最佳解决方案。

    pay.yzxt.cc
  • 设计师网址导航设计师网址导航

    优站设计师网站导航为设计师提供全方位的供ps教程、UI设计、素材下载、高清图库、配色方案、用户体验、网页设计等全方位设计师网站导航指引。每周更新及时,同时是优站网(YOUZHAN.CO)旗下最实用、最专业、最全面、最好用的设计师网址导航!

    dc.xinmeit.com
  • 新媒体网址导航新媒体网址导航

    优站新媒体网站导航为新媒体人提供全方位的数据分析、新媒助手、必备的工具资源、自媒体平台、运营营销、学习创业等全方位新媒体网站导航指引。每周更新及时,同时是优站网(YOUZHAN.CO)旗下最实用、最专业、最全面、最好用的新媒体网址导航!

    www.xinmeit.com
  • Onlylady女人志Onlylady女人志

    Onlylady女人志女性时尚生活平台是专业的女性时尚网站,为广大用户提供专业的时尚潮流、美容方法、流行趋势、服饰时装资讯,打造专业时尚、美容、生活、达人、互动平台。

    www.onlylady.com
  • 网址导航网址导航

    hao125是最具权威的中文上网导航,汇集最优秀的网站及资源。及时收录影视、音乐、小说、游戏等分类的网址和内容,让您的网络生活更简单精彩。上网,从hao125开始。

    hao125.com.cn
  • 中国政府网中国政府网

    中华人民共和国中央人民政府门户网站

    www.gov.cn