LeNgHoSt的小窝

I did it my way, ‘Cause it’s my life!

2009年07月19日

如何通过多个域名访问你的博客(WordPress绑定多域名)

前阵子注册的LHX.in域名一直闲置,最近在网上搜索如何给一个WordPress绑定多个域名,通过多个域名访问同一个博客,看了下原理,和之前多个域名共用一个WordPress程序(数据库不同)类似。
为了省去修改文件的麻烦,在网上搜到这个插件:
Domain Theme

Domain Theme allows you to specify more then one domain name with your WordPress installation and optionally associate a specific theme for each domain. This enables you to present your site under multiple domain names. (i.e. www.mypersonalblog.com and www.myprofessionalblog.com). A specific theme template can be assigned to a specific domain. For instance, you can use this plugin for a personal blog that has a casual theme under one domain and and present the same data under a corporate theme that omits select categories (i.e. family photos, etc.). You will need to modify your DNS settings to point your domain name(s) to the same server to make this happen.

这个插件可以给你的WordPress博客绑定多个域名,并单独设置每个域名的Title和Theme。

使用方法很简单,把下载的插件解压,得到 domainTheme.php 文件,上传到 /wp-content/plugins/ 目录,进入WordPress后台启用插件,添加Domain,设置Title和Theme等等,当然前提是要添加的域名已绑定到WordPress所在服务器。

效果演示:
http://LHX.in
http://www.lenghost.cn

下载插件

标签:, ,

相关日志

发表评论