苹果CMS伪静态链接带很多横杠—的解决方法
苹果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