Apple CMSv10_ the station's pseudo-static rule Tutorial _ Linux systems pagoda

  Apple also known as CMS MacCMS, is the most commonly used video owners of video network management program.

  Apple CMS website in order to strengthen included optimization SEO, do static links are ideal.

  Pseudo-static conducive to search engine optimization, better get ranked.

  But the generation of static pages will take up a lot of disk server, and affect the speed of the server. Especially the new owners lightweight configuration, is extremely reluctant to see.

 

Start the topic:

 

First, set the background pagoda pseudo-static rules

  Filled pagoda pseudo-static rules: pagoda panel - Web Site - Set - pseudo-static - Rules paste code - save

 

  Pseudo-static rules:

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;
        }

 

Second, Apple set the background CMS pseudo-static routing rules, and turned pseudo-static

  1. Set the pseudo-static routing apple background: apple background - systems --URL address configuration - pseudo-static routing settings - routing rules - rules paste code - save

 

  Pseudo-static routing rules:

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-<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
 
 
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

 

  2.设置好路由伪静态规则后,便要开启伪静态:

  路由状态--开启;

  伪静态状态--开启。

 

记得点击保存哦。各位小哥哥小姐姐想看效果的话,可以去这个网站看看:http://www.giys.cn/

有问题可以留言,收到后逐一会回复的。

 

Guess you like

Origin www.cnblogs.com/claidx/p/11286338.html