Php博客系统Lifetype中文等相关问题
Lifetype是一款优秀的php博客程序,本文记录帮一个Linux虚拟主机客户安装Lifetype遇到的部分问题。
1、中文问题:Lifetype中文很完善,只是由于中文语言包是台湾朋友提供的,所以有些语言不合大陆习惯,总体无大碍,Lifetype支持中文搜索,中文显示等;
2、Lifetype默认首页:Lifetype默认使用第一个博客作为默认首页,如果要使用summary.php作为默认首页,需要在.htaccess 文件(需虚拟主机支持mod_rewrite)中加入 DirectoryIndex summary.php
3、Lifetype搜索引擎优化:Lifetype带有网址规范化选项,需要在管理后台打开使用apache mod_rewrite,同时在Lifetype网站的.htaccess文件((需虚拟主机支持mod_rewrite))中加入如下内容:
RewriteEngine On
RewriteBase /blog/
# Permalink to the blog entry (i.e. /blog/1_user/archive/3_title-bar.html)
RewriteRule ^([0-9]+)[^/]+/archive/([0-9]+)[^.]+.html$ index.php?op=ViewArticle&blogId=$1&articleId=$2 [L,NC]
ErrorDocument 401 /blog/error.php
ErrorDocument 403 /blog/error.php
ErrorDocument 404 /blog/error.php
4、Lifetype中文乱码:在安装Lifetype时,如果选择了utf8,那么你mysql数据库要使用 utf8_general_ci



引用
引用此文章所需要使用的的特定网址
没有引用
回复
添加回复