apache 伪静态规则    (网站URL链接结构设置选择"文件型")

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




