专注是一种工匠精神

苹果CMS V10 全站伪静态教程 伪静态规则分享 宝塔Linux系统

前阵子建了一个苹果cms v10的站点,这次打算认真的做一次韩国影视视频站,因为我之前也做过影视站,用的飞飞影视系统做了之后就没怎么打理过了,现在基本上IP可以稳定3000+左右,pv也就50000+,个人还是很满意的,但是网站没有进行什么优化,导致现在百度只收录了首页。 因为之前没有怎么了解苹果cms v10的伪静态规则,后来在网上看到了一篇教程,才搞好的,现把伪静态教程简单整理发布出来供有需要的人借鉴。

 

宝塔后台设置伪静态规则

本人使用的是宝塔linux,打开你网站管理,找到伪静态设置,把下面的规则复制到你伪静态规则里面,然后保存即可。

if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
rewrite ^/api.php(.*)$ /api.php?s=$1 last;
rewrite ^/admin.php(.*)$ /admin.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}

 

蘋果cms寶塔偽靜態

 

苹果CMS 后台设置路由伪静态规则以及开启伪静态

设置了网站伪静态规则之后,我们还需要去网站后台开启伪静态,以及设置路由伪静态规则 打开苹果cms v10的后台, 系统>URL地址配置>路由伪静态设置,把下面的规则复制粘贴到路由伪静态规则里面,覆盖之前的路由规则。

map   => map/index
rss   => rss/index
 
index-<page?>   => index/index
 
gbook-<page?>   => gbook/index
gbook$   => gbook/index
 
topic-<page?>   => topic/index
topic$  => topic/index
topicdetail-   => topic/detail
 
actor-<page?>   => actor/index
actor$ => actor/index
actordetail-   => actor/detail
actorshow/<area?>-<blood?>-<by?>-<letter?>-<level?>-<order?>-<page?>-<sex?>-<starsign?>   => actor/show
 
role-<page?>   => role/index
role$ => role/index
roledetail-   => role/detail
roleshow/<by?>-<letter?>-<level?>-<order?>-<page?>-<rid?>   => role/show
 
 
vodtype/-<page?>   => vod/type
vodtype/   => vod/type
voddetail/   => vod/detail
vodrss-   => vod/rss
vodplay/--   => vod/play
voddown/--   => vod/down
vodshow/-<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
 
 
arttype/-<page?>   => art/type
arttype/   => art/type
artshow-   => art/show
artdetail--<page?>   => art/detail
artdetail-   => art/detail
artrss--   => art/rss
artshow/-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?>   => art/show
artsearch/<wd?>-<by?>-<class?>-<level?>-<letter?>-<order?>-<page?>-<tag?>   => art/search

label- => label/index

设置路由规则之后,开启路由伪静态 开启伪静态 最后保存即可,按照以上步骤,完全可以达到全站伪静态,伪静态有利于搜索引擎优化,更好的获得排名。

 

蘋果cms url規則

赞(2)
未经允许不得转载:伦客网 » 苹果CMS V10 全站伪静态教程 伪静态规则分享 宝塔Linux系统

评论 1

1 + 4 =
  1. #1

    感谢分享,maccms这系统玩的我头疼,还好有这个教程,有帮助到。

    匿名訪客 9个月前 (06-30) Taiwan; Republic of China (ROC) 谷歌浏览器 Windows 10 台湾省台北市 中华电信回覆