Multicraft Multicraft下如何实现伪静态

稻草

【Lv:4】

管理成员
版主
注册
2018/02/10
消息
18
金粒
2,613.12金粒
伪静态的作用主要是对搜索引擎友好

伪静态只是改变了URL的表现形式,实际上还是动态页面

还有其他的作用等等

修改之前链接的形式
18.png

接下来进入
/var/www/html/protected/config/internal


取出application.php文件
19.png

找到

// uncomment the following to enable URLs in the format index.php/server/1
/*’urlFormat’=>’path’,*/
// uncomment the following to hide the index.php part of the URL
/*’showScriptName’=>false,*/

改成

// uncomment the following to enable URLs in the format index.php/server/1
'urlFormat'=>'path',
// uncomment the following to hide the index.php part of the URL
'showScriptName'=>false,

20.png


保存,上传到服务器



效果图
21.png
 

在线会员

  • 晚霞与你
  • 今晚打老虎
  • calman2022
  • Mqtzzn
  • 萧瑟
  • 手动滑稽
  • 没烦恼
  • mc_xiaoQAQ_
  • 小安鱼
  • 莫谣
  • ice_watermelon
  • GXH
  • xiaomeimei
  • a354
  • CaesarGalahad
  • 姿势
后退
顶部 底部