当前位置:教程 > 苹果CMSV10最新伪静态规则

苹果CMSV10最新伪静态规则

  • 时间:2024-04-21
  • 阅读:0
  • 来源:网友投稿

苹果CMS伪静态规则说明

最新V10版本伪静态规则,包含.htaccess httpd.ini maccms.conf web.config,各种环境伪静态文件。

伪静态规则对照表

IIS  阿帕奇  规则      前面的字母是可以修改的,可以变化无穷
视频地图页规则: map
视频分类页规则:  type/{id}-{pg}
视频内容页规则: detail/{id}
视频播放页规则: play/{id}-{src}-{num}
视频下载页规则: down/{id}-{src}-{num}
vod-list-id-{id}-pg-{pg}-order-{order}-by-{by}-class-{class}-year-{year}-letter-{letter}-area-{area}-lang-{lang}
视频专题首页规则:     topicindex
视频专题列表页规则:   topiclist/{id}-{pg}
视频搜索页规则:  search-pg-{pg}-wd-{wd}
文章首页规则:    artindex
文章分类页规则:  artlist/{id}-{pg}
文章内容页规则:  art/{id}-{pg}
文章地图页规则:  artmap
留言本规则:      gbook/{pg}
自定义页规则:    label/{label}
rss              rss/{method}/{pg}

httpd.ini

[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^type/(.*)-(.*)$ /index.php?m=vod-type-id-$1-pg-$2 [I]
RewriteRule ^detail/(.*)$ /index.php?m=vod-detail-id-$1 [I]
RewriteRule ^play/(.*)-(.*)-(.*)$ /index.php?m=vod-play-id-$1-src-$2-num-$3 [I]
RewriteRule ^down/(.*)-(.*)-(.*)$ /index.php?m=vod-down-id-$1-src-$2-num-$3 [I]
RewriteRule ^topiclist/(.*)-(.*)$ /index.php?m=vod-topic-id-$1-pg-$2 [I]
RewriteRule ^topicindex(.*)$ /index.php?m=vod-topicindex-pg-$1 [I]
RewriteRule ^artindex(.*)$ /index.php?m=art-index-pg-$1 [I]
RewriteRule ^artlist/(.*)-(./*)$ /index.php?m=art-type-id-$1-pg-$2 [I]
RewriteRule ^art/(.*)-(.*)$ index.php?m=art-detail-id-$1-pg-$2 [I]
RewriteRule ^label/(.*)$ /index.php?m=label-$1 [I]
RewriteRule ^map(.*)$ /index.php?m=vod-map$1 [I]
RewriteRule ^artmap(.*)$ /index.php?m=art-map$1 [I]
RewriteRule ^gbook/(.*)$ /index.php?m=gbook-show-pg-$1 [I]
RewriteRule ^search-pg-(.*)-wd-(.*)$ /index.php?m=vod-search-pg-$1-wd-$2 [I]
RewriteRule ^rss/(.*)/(.*)$ /index.php?m=map-$1 [I]
RewriteRule ^vod-list-id-(.*)-pg-(.*)-order-(.*)-by-(.*)-class-(.*)-year-(.*)-letter-(.*)-area-(.*)-lang-(.*)$ /index.php?m=vod-list-id-$1-pg-$2-wd-$3-area-$4-lang-$5-year-$6-letter-$7-order-$8-by-$9 [I]

.htaccess 

# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /maccms 为你的网站目录地址,如果程序放在根目录中,请将 /maccms 修改为 /
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteRule ^type/(.*)-(.*)$ index.php?m=vod-type-id-$1-pg-$2
RewriteRule ^detail/(.*)$ index.php?m=vod-detail-id-$1
RewriteRule ^play/(.*)-(.*)-(.*)$ index.php?m=vod-play-id-$1-src-$2-num-$3
RewriteRule ^down/(.*)-(.*)-(.*)$ index.php?m=vod-down-id-$1-src-$2-num-$3
RewriteRule ^topiclist/(.*)-(.*)$ index.php?m=vod-topic-id-$1-pg-$2
RewriteRule ^topicindex(.*)$ index.php?m=vod-topicindex-pg-$1
RewriteRule ^artindex(.*)$ index.php?m=art-index-pg-$1
RewriteRule ^artlist/(.*)-(.*)$ index.php?m=art-type-id-$1-pg-$2
RewriteRule ^art/(.*)-(.*)$ index.php?m=art-detail-id-$1-pg-$2
RewriteRule ^label/(.*)$ index.php?m=label-$1
RewriteRule ^map(.*)$ index.php?m=vod-map$1
RewriteRule ^artmap(.*)$ index.php?m=art-map$1
RewriteRule ^gbook/(.*)$ index.php?m=gbook-show-pg-$1
RewriteRule ^search-pg-(.*)-wd-(.*)$ index.php?m=vod-search-pg-$1-wd-$2
RewriteRule ^rss/(.*)/(.*)$ index.php?m=map-$1
RewriteRule ^vod-list-id-(.*)-pg-(.*)-order-(.*)-by-(.*)-class-(.*)-year-(.*)-letter-(.*)-area-(.*)-lang-(.*)$ index.php?m=vod-list-id-$1-pg-$2-wd-$3-area-$4-lang-$5-year-$6-letter-$7-order-$8-by-$9

maccms.conf 

#安装目录  1,根目录 /  2,子目录 /maccms8_syb/
rewrite ^/type/(.*)-(.*)$ index.php?m=vod-type-id-$1-pg-$2 break;
rewrite ^/detail/(.*)$ index.php?m=vod-detail-id-$1 break;
rewrite ^/play/(.*)-(.*)-(.*)$ index.php?m=vod-play-id-$1-src-$2-num-$3 break;
rewrite ^/down/(.*)-(.*)-(.*)$ index.php?m=vod-down-id-$1-src-$2-num-$3 break;
rewrite ^/topiclist/(.*)-(.*)$ index.php?m=vod-topic-id-$1-pg-$2 break;
rewrite ^/topicindex(.*)$ index.php?m=vod-topicindex-pg-$1 break;
rewrite ^/artindex(.*)$ index.php?m=art-index-pg-$1 break;
rewrite ^/artlist/(.*)-(.*)$ index.php?m=art-type-id-$1-pg-$2 break;
rewrite ^/art/(.*)-(.*)$ index.php?m=art-detail-id-$1-pg-$2 break;
rewrite ^/label/(.*)$ index.php?m=label-$1 break;
rewrite ^/map(.*)$ index.php?m=vod-map$1 break;
rewrite ^/artmap(.*)$ index.php?m=art-map$1 break;
rewrite ^/gbook/(.*)$ index.php?m=gbook-show-pg-$1 break;
rewrite ^/search-pg-(.*)-wd-(.*)$ index.php?m=vod-search-pg-$1-wd-$2 break;
rewrite ^/rss/(.*)/(.*)$ index.php?m=map-$1 break;
rewrite ^/vod-list-id-(.*)-pg-(.*)-order-(.*)-by-(.*)-class-(.*)-year-(.*)-letter-(.*)-area-(.*)-lang-(.*)$ index.php?m=vod-list-id-$1-pg-$2-wd-$3-area-$4-lang-$5-year-$6-letter-$7-order-$8-by-$9 break;

web.config

<?xml version="1.0" encoding="UTF-8"?>




<!--  视频分类页  -->



<!--  视频内容页  -->



<!-- 视频播放页  -->



<!--  视频下载页  -->



<!--  视频搜索页  -->



<!--  视频地图  -->



<!--  筛选页面  -->



<!--  视频专题列表页  -->



<!-- 视频专题首页  -->



<!--  文章首页  -->



<!--  文章分类页  -->



<!--  文章内容页  -->



<!--  留言本  -->



<!--  自定义页  -->



<!-- 文章地图页  -->



<!-- rss地图页  -->







发表评论