苹果cms教程

苹果CMSV10最新伪静态规则

我的站长站 2019-09-09 人阅读

苹果CMS伪静态规则说明

苹果CMSV10最新伪静态规则

最新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"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule vodtype"><!--  视频分类页  -->
<match url="^type/(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-type-id-{R:1}-pg-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule voddetail"><!--  视频内容页  -->
<match url="^detail/(.*)$" />
<action type="Rewrite" url="index.php?m=vod-detail-id-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule vodplay"><!-- 视频播放页  -->
<match url="^play/(.*)-(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-play-id-{R:1}-src-{R:2}-num-{R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule voddown"><!--  视频下载页  -->
<match url="^down/(.*)-(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-down-id-{R:1}-src-{R:2}-num-{R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule vodsearch"><!--  视频搜索页  -->
<match url="^search-pg-(.*)-wd-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-search-pg-{R:1}-wd-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule vodmap"><!--  视频地图  -->
<match url="^map(.*)$" />
<action type="Rewrite" url="index.php?m=vod-map{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule shaixuan"><!--  筛选页面  -->
<match url="^vod-list-id-(.*)-pg-(.*)-order-(.*)-by-(.*)-class-(.*)-year-(.*)-letter-(.*)-area-(.*)-lang-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-list-id-{R:1}-pg-{R:2}-wd-{R:3}-area-{R:4}-lang-{R:5}-year-{R:6}-letter-{R:7}-order-{R:8}-by-{R:9}" appendQueryString="false" />
</rule>
<rule name="Imported Rule ztlist"><!--  视频专题列表页  -->
<match url="^topiclist/(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=vod-topic-id-{R:1}-pg-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule topic"><!-- 视频专题首页  -->
<match url="^topicindex(.*)$" />
<action type="Rewrite" url="index.php?m=vod-topicindex-pg-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule artindex"><!--  文章首页  -->
<match url="^artindex(.*)$" />
<action type="Rewrite" url="index.php?m=art-index-pg-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule arttype"><!--  文章分类页  -->
<match url="^artlist/(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=art-type-id-{R:1}-pg-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule artdetail"><!--  文章内容页  -->
<match url="^art/(.*)-(.*)$" />
<action type="Rewrite" url="index.php?m=art-detail-id-{R:1}-pg-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule gbook"><!--  留言本  -->
<match url="^gbook/(.*)$" />
<action type="Rewrite" url="index.php?m=gbook-show-pg-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule label"><!--  自定义页  -->
<match url="^label/(.*)$" />
<action type="Rewrite" url="index.php?m=label-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule artmap"><!-- 文章地图页  -->
<match url="^artmap(.*)$" />
<action type="Rewrite" url="index.php?m=art-map{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule rss"><!-- rss地图页  -->
<match url="^rss/(.*)/(.*)$" />
<action type="Rewrite" url="index.php?m=map{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
相关推荐
  • 伪静态
  • 苹果cmsv10教程
  • 伪静态规则
  • dedecms伪静态生成插件
    dedecms伪静态生成插件

    织梦后台系统参数有个伪静态设置,相信大家都没弄过,今天就搞一个dedecms伪静态插件,供大家研究学习交流。dedecmss伪静态插件使用方法一、首先就是需要开启伪静态。.后台系统→系统基本参数→核心设...

    织梦cms插件 1529 5年前
  • 帝国CMS二次开发搜索伪静态教程

    1、打开esearchindex.php 411行左右,找到:Header("Location:result/?searchid=$searchid".$dogetvar);修改为:Header("Location:$public_r[newsurl]search-0-$searchid.html".$dogetvar);二、打开esearchresultindex.php 20行左右,找到://搜索结果$sea...

    帝国cms教程 340 10年前
  • 帝国CMS7.0IIS伪静态教程

    帝国CMS7.0IIS伪静态教程步骤:1、进后后台 - 系统 - 系统设置 - 伪静态参数设置 - 都点击默认2、在网站根目录(web文件夹)下建一个文件,文件名及后缀格式为:httpd.ini3、用txt/记事本模式打开httpd.ini文件,将下面的内容复制到该文件内:[ISAPI_Rewrite]# ...

    帝国cms教程 330 10年前
  • 苹果cmsv10怎么生成网站地图

    苹果cmsv10怎么生成网站地图?之前我的主题网分享过一个教程:苹果cms怎么生成网站地图 ,首先来说下什么是网站地图,网站地图有什么作用,然后再来说下怎么操作苹果cmsv10生成网站地图。什么是网站地图?网站地图是一个网站平台全部网页链接的器皿。许多网站站...

    苹果cms教程 684 4年前
  • 苹果CMS v10自用调用标签收藏

    调用网址{$maccms.path}调用标题{$vo.vod_name}{$vo.art_name}调用时间格式化{$obj.vod_time|date=&#39;Y-m-d&#39;,###}{$vo.art_time|date=&#39;Y-m-d&#39;,###}{$vo.vod_time|date=&#39;Y-m-d&#39;,###}调用影片长度{$vo.vod_duration}{$obj.vod_...

    苹果cms教程 2719 5年前
  • 苹果CMSV10最新伪静态规则

    苹果CMS伪静态规则说明最新V10版本伪静态规则,包含.htaccess httpd.ini maccms.conf web.config,各种环境伪静态文件。伪静态规则对照表IIS 阿帕奇 规则 ++ 前面的字母是可以修改的,可以变化无穷视频地图页规则: map视频分类页规则: type/{id}-{pg}...

    苹果cms教程 564 5年前
  • RewriteRule-htaccess伪静态规则写法和常用规则

    伪静态匹配规则.换行符以外的所有字符\w 匹配字母或数字或下划线或汉字\s 匹配任意的空白符\d 匹配数字\b 匹配单词的开始或结束^ 匹配字符串的开始$ 匹配字符串的结束* 重复零次或更多次+ 重复一次或更多次? 重复零次或一次{n} 重复n次{n,}重复...

    经验分享 61 1年前
  • 帝国cms7.2默认伪静态规则

    暂时只有APACHE IIS6 IIS7的规则,其他规则自行对照修改即可。不是很严谨,自己可以往严谨中修改:仅供参考!apache下的.htaccess:RewriteEngine OnErrorDocument 404 /404.htmlRewritebase /#信息列表RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^l...

    帝国cms教程 702 8年前
  • 帝国TAGS标签伪静态调用+伪静态规则教程

    帝国CMS灵动标签SQL调用TAGS标签代码<?php$tsql=$empire->query("select * from {$dbtbpre}enewstags order by num desc");while($tr=$empire->fetch($tsql)){?><a href="/tag/<?=$tr[&#39;path&#39;]?>.html" target="_blank&qu...

    帝国cms教程 364 7年前
最新更新