我们知道,网站伪静态可以形成静态页面,对于百度收录有着非常大的好处。(相关知识:Discuz论坛后台SEO优化设置详细步骤)

对于DISCUZ论坛程序实现伪静态的方法很多,这是因为你选用的网站空间的属性所决定的,不同的网站空间,DISCUZ论坛程序实现伪静态的方法是不一样的.这也是为什么一些如何做网站论坛的学员不能将自己的论坛伪静态的原因。
下面我就为大家讲一下DISCUZ论坛程序实现伪静态的方法。
方法/步骤
- 点击管理后台——全局——SEO设置——URL静态化;

- 将所有选项打勾,并且设置“仅对游客有效”为否,然后提交;

- 点击DISCUZ论坛提供的伪静态代码链接,里面提供了很多的伪静态代码;

- 如果你是在西度数码网络购买的网站主机,直接复制“Apache Web Server(虚拟主机用户)”下面的代码;

- 在电脑桌面上新建一个文本文档,命名为123.txt;将上一步复制的代码粘贴到123.txt中;

- 将123.txt文件通过FTP上传到自己网站空间根目录下,然后重命名为“.htaccess”;
- 这样DISCUZ论坛伪静态设置就成功了。
如果按照上面方法设置后,论坛帖子页面打不开,说明是你使用的网站主机不适用这段伪静态代码,需要联系你的空间商解决。