• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~

Multicraft Multicraft下如何实现伪静态

稻草

【Lv:4】

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

伪静态只是改变了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
 

在线会员

  • fanting
  • Nickelodeon
  • 茶茶space
  • wuyewoi
  • qqt8023
  • SASOURI
  • 一远征2
  • 御坂御坂
  • xliang
  • AkkTNT
  • 红葵
  • Carrido
  • 一二九
  • Super_Ling
  • soft
  • 嚣兮
  • 1905373790
  • hhhhGG
  • 小小的子沐呀
  • Abyssalways
  • PuddingKC
...和 42 更多。
后退
顶部 底部