网站推广三步走:十秒注册 -> 提交网站 -> 快速审核 -> 带来无限流量和外链 -> 点入及点出一次即可排名第一位

当前位置:66网站目录 » 站长资讯 » 站长教程 » 文章详细

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

来源:优站网 浏览:80次 时间: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


推荐站点

  • 聚站网聚站网

    聚站网,免费提供网站目录分类检索,收集正规的中文网站,用户自主的网站提交,为各行业分类目录收藏,聚站网努力打造优质丰富的网站收录平台。

    www.565865.com
  • YY分类目录YY分类目录

    YY分类目录全人工编辑的开放式网站分类目录,收录国内外、各行业优秀网站,旨在为用户提供网站分类目录检索、优秀网站参考、网站推广服务。

    www.yydir.com
  • 66网站目录66网站目录

    66网站目录是免费收录各行业优秀网站,提供网站分类目录检索,关键字搜索,提交网站即可免费推广,增加外链,提升网站流量。

    www.66dir.com
  • 25分类目录25分类目录

    25分类目录专业提供网站网址免费提交收录,25分类目录是采用开放导航式的网站大全,收录国内外各行业优秀的网站网址,让网站在各大搜索引擎收录快排名靠前。

    www.25dir.com
  • 和讯科技和讯科技

    和讯科技是和讯网核心资讯频道,以报道科技中国,分享全球智慧为目标,为高端财经网络用户提供有关TMT产业领域及时、快速、全面的资讯报道。

    tech.hexun.com
  • 百度搜索百度搜索

    百度,全球最大的中文搜索引擎、最大的中文网站。

    www.baidu.com