23
YOYO的最新BLOG文章
23
19
Linux下Kloxo的中文汉化
No Comments | 296 views我去年写过一篇关于Kloxo的安装博客,当时只是测试一下性能而已,没太认真的用过。而前几天,有一个客户要用这个面板,所以我就又熟悉了一把这个面板。这次深入的了解了一下之后,觉得Kloxo这个面板还不错,也做了一下汉化,推荐大家使用,免费的哟。
中文包安装 使用方法:
1.进入lang目录:
$ cd /usr/local/lxlabs/kloxo/httpdocs/lang
2.下载语言包:
$ wget http://www.65v.net/info/zip/kloxo_cn_pack.zip
3.解压:
$ unzip kloxo_cn_pack.zip
(如果没有安装unzip命令请执行yum -y install unzip进行安装)
访问http://你的IP:7778/ 登录后进行kloxo语言设置
在Appearance->Language里选择Chinese,然后点击update确认即可。
02
重写.htaccess将主域名从网站根目录重新指向一个子目录
No Comments | 153 views这个方法真的是很牛x,我直接拷贝过来,改了一下域名和目录就直接能用了,网上很少有这么牛的文档,所以我也就直接转载过来了,什么都没改。
具体写法如下:
# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
# Change ’subfolder’ to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/subfolder/
# Don’t change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change ’subfolder’ to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /subfolder/$1
# Change yourdomain.com to be your main domain again.
# Change ’subfolder’ to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
RewriteRule ^(/)?$ subfolder/index.php [L]
文章来源:http://hi.baidu.com/chenjia14/blog/item/a9a9fc50b8a3f2501038c2a0.html






