zoukankan      html  css  js  c++  java
  • 苹果CMSv10_全站伪静态规则教程_宝塔Linux系统

      苹果CMS又名MacCMS,是大多视频站长常用的视频网管理程序。

      苹果CMS网站为了加强收录优化SEO,做静态的链接是最理想的。

      伪静态有利于搜索引擎优化,更好的获得排名。

      但是生成静态页面则会占用服务器大量的磁盘,以及影响服务器的运行速度。尤其是轻量配置的新站长,是极其不愿意看到的。

    开始正题:

    一、宝塔后台设置伪静态规则

      填充宝塔伪静态规则:宝塔面板--网站--设置--伪静态--黏贴规则代码--保存

      伪静态规则:

    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后台设置路由伪静态规则以及开启伪静态

      1.设置苹果后台路由伪静态:苹果后台--系统--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-<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/

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

  • 相关阅读:
    17.1.2.1 Advantages and Disadvantages of Statement-Based and Row-Based Replication
    17.1.2 Replication Formats
    Setting the Master Configuration on the Slave
    17.1.1.9 Introducing Additional Slaves to an Existing Replication Environment
    17.1.1.8 Setting Up Replication with Existing Data
    17.1.1.7 Setting Up Replication with New Master and Slaves
    17.1.1.6 Creating a Data Snapshot Using Raw Data Files
    列出display的值,并说明它们的作用
    CSS设置DIV居中
    CSS选择符有哪些?哪些属性可以继承?优先级算法如何计算?
  • 原文地址:https://www.cnblogs.com/claidx/p/11286338.html
Copyright © 2011-2022 走看看