苹果CMS的伪静态文件在安装包里有提供,说明文件里包括了伪静态规则,火车头模块等,我们需要根据自己服务器的情况,选择合适的伪静态文件进行使用,伪静态成功了,网站的动态页面就会变成静态,建议用html格式。网址的链接也会相对变短,但是我们会发现个别链接会出现很多带横杠——的链接。虽然链接可以正常打开,但是非常影响美观,其实这个是由于苹果CMS默认的路由规则导致,我们可以通过后台设置修改,让链接去掉这些横杠,具体方法如下:
打开苹果CMS后台,系统-URL地址配置-路由伪静态配置-删除路由规则里<>未使用的参数。注意只修改规则前半部分即可。
参考规则如下:
map => map/index
rss/index => rss/index
rss/baidu => rss/baidu
rss/google => rss/google
rss/sogou => rss/sogou
rss/so => rss/so
rss/bing => rss/bing
rss/sm => rss/sm
index-<page?> => index/index
gbook-<page?> => gbook/index
gbook$ => gbook/index
topic-<page?> => topic/index
topic$ => topic/index
topicdetail-<id> => topic/detail
actor-<page?> => actor/index
actor$ => actor/index
actordetail-<id> => actor/detail
actorshow/<area?>-<blood?>-<by?>-<letter?>-<level?>-<order?>-<page?>-<sex?>-<starsign?> => actor/show
role-<page?> => role/index
role$ => role/index
roledetail-<id> => role/detail
roleshow/<by?>-<letter?>-<level?>-<order?>-<page?>-<rid?> => role/show
type/<id>-<page?> => vod/type
type/<id> => vod/type
detail/<id> => vod/detail
rss-<id> => vod/rss
play/<id>-<sid>-<nid> => vod/play
down/<id>-<sid>-<nid> => vod/down
show/<id> => vod/show
search/ => vod/search
plot/<id>-<page?> => vod/plot
plot/<id> => vod/plot
arttype/<id>-<page?> => art/type
arttype/<id> => art/type
artshow-<id> => art/show
artdetail-<id>-<page?> => art/detail
artdetail-<id> => art/detail
artrss-<id>-<page> => art/rss
artshow/<id>-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?> => art/show
artsearch/<wd?>-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?> => art/search
label-<file> => label/index
plotdetail/<id>-<page?> => plot/plot
plotdetail/<id> => plot/detail
/ 表达式
map => map/index
rss/index => rss/index
rss/baidu => rss/baidu
rss/google => rss/google
rss/sogou => rss/sogou
rss/so => rss/so
rss/bing => rss/bing
rss/sm => rss/sm
index/<page?> => index/index
gbook/<page?> => gbook/index
gbook$ => gbook/index
topic/<page?> => topic/index
topic$ => topic/index
topicdetail/<id> => topic/detail
actor/<page?> => actor/index
actor$ => actor/index
actordetail/<id> => actor/detail
actorshow/<area?>/<blood?>/<by?>/<letter?>/<level?>/<order?>/<page?>/<sex?>/<starsign?> => actor/show
role/<page?> => role/index
role$ => role/index
roledetail/<id> => role/detail
roleshow/<by?>/<letter?>/<level?>/<order?>/<page?>/<rid?> => role/show
type/<id>/<page?> => vod/type
type/<id> => vod/type
detail/<id> => vod/detail
rss/<id> => vod/rss
play/<id>/<sid>/<nid> => vod/play
down/<id>/<sid>/<nid> => vod/down
show/<id> => vod/show
search/ => vod/search
plot/<id>/<page?> => vod/plot
plot/<id> => vod/plot
arttype/<id>/<page?> => art/type
arttype/<id> => art/type
artshow/<id> => art/show
artdetail/<id>/<page?> => art/detail
artdetail/<id> => art/detail
artrss/<id>/<page> => art/rss
artshow/<id>/<by?>/<class?>/<level?>/<letter?>/<order?>/<page?>/<tag?> => art/show
artsearch/<wd?>/<by?>/<class?>/<level?>/<letter?>/<order?>/<page?>/<tag?> => art/search
label/<file> => label/index
plotdetail/<id>/<page?> => plot/plot
plotdetail/<id> => plot/detail
原默认参数
map => map/index
rss/index => rss/index
rss/baidu => rss/baidu
rss/google => rss/google
rss/sogou => rss/sogou
rss/so => rss/so
rss/bing => rss/bing
rss/sm => rss/sm
index-<page?> => index/index
gbook-<page?> => gbook/index
gbook$ => gbook/index
topic-<page?> => topic/index
topic$ => topic/index
topicdetail-<id> => topic/detail
actor-<page?> => actor/index
actor$ => actor/index
actordetail-<id> => actor/detail
actorshow/<area?>-<blood?>-<by?>-<letter?>-<level?>-<order?>-<page?>-<sex?>-<starsign?> => actor/show
role-<page?> => role/index
role$ => role/index
roledetail-<id> => role/detail
roleshow/<by?>-<letter?>-<level?>-<order?>-<page?>-<rid?> => role/show
vodtype/<id>-<page?> => vod/type
vodtype/<id> => vod/type
voddetail/<id> => vod/detail
vodrss-<id> => vod/rss
vodplay/<id>/<sid>/<nid> => vod/play
voddown/<id>-<sid>-<nid> => vod/down
vodshow/<id>-<area?>-<by?>-<class?>-<lang?>-<letter?>-<level?>-<order?>-<page?>-<state?>-<tag?>-<year?> => vod/show
vodsearch/<wd?>-<actor?>-<area?>-<by?>-<class?>-<director?>-<lang?>-<letter?>-<level?>-<order?>-<page?>-<state?>-<tag?>-<year?> => vod/search
vodplot/<id>-<page?> => vod/plot
vodplot/<id> => vod/plot
arttype/<id>-<page?> => art/type
arttype/<id> => art/type
artshow-<id> => art/show
artdetail-<id>-<page?> => art/detail
artdetail-<id> => art/detail
artrss-<id>-<page> => art/rss
artshow/<id>-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?> => art/show
artsearch/<wd?>-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?> => art/search
label-<file> => label/index
plotdetail/<id>-<page?> => plot/plot
plotdetail/<id> => plot/detail
© 版权声明
文章版权归作者所有,未经允许请勿转载
1. 本站所提供的源码模板(主题/插件)等资源仅供学习交流,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担,有部分资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来信通知我们(Email: 236749035@qq.com),我们会及时删除,给您带来的不便,我们深表歉意!
2. 分享目的仅供大家学习和交流,请不要用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布投稿,分享有佣金分成!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务 请大家谅解!
5. 如有链接无法下载、失效或广告,请联系站长,可领回失去的金币,并额外有奖!
6. 本站部分文章、资源来自互联网,版权归原作者及网站所有,如果侵犯了您的权利,请及时联系我站删除。免责声明
1. 本站所提供的源码模板(主题/插件)等资源仅供学习交流,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担,有部分资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来信通知我们(Email: 236749035@qq.com),我们会及时删除,给您带来的不便,我们深表歉意!
2. 分享目的仅供大家学习和交流,请不要用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布投稿,分享有佣金分成!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务 请大家谅解!
5. 如有链接无法下载、失效或广告,请联系站长,可领回失去的金币,并额外有奖!
6. 本站部分文章、资源来自互联网,版权归原作者及网站所有,如果侵犯了您的权利,请及时联系我站删除。免责声明
暂无评论内容