Posts Tagged ‘Wordpress经验’

WordPress博客添加ping服务器加快搜索引擎收录

ping服务对博客来说是件非常重要的工具,它可以在你发表文章后迅速通知搜索引擎,feed托管服务商和在线RSS阅读器更新。这对博客来说是相当重要的。这是我收集的ping服务器,网上的很多都是没有百度的服务器,我个人认为对中国博客来说还是比较有用的。(小知识:对于 WordPress 用户,添加Ping 服务 RPC 端点很简单,只要在后台的撰写选项的更新服务中,把下面的那些添加进去就行了,当然也可以去掉几个,如果添加过多的话发布文章时会很慢。)

Read more…

更多

Be the first to comment  Posted by admin - 2010 年 6 月 28 日 at 19:08 Just 2,380 views

  Categories: WordPress经验, 建站经验   Tags: ,

分享几个非常有用的wordpress插件

Akismet:wordpress自带的防spam插件,虽然有时有误伤,但基本没放进来过spam
Google XML Sitemaps:自动帮你的wordpress生成google sitemap,很实用,自带中文版(只是我还没有找到如何设置才能支持一个wordpress程序多个域名时每一个域名各自存放sitemap文件的方法)http://www.arnebrachhold.de/redir/sitemap-home/
HeadSpace2:功能非常强大的seo插件,自定义功能比All in One SEO Pack强的多,(插件提供了强大的 Page Titles, Tags, keywords and Description 的 Meta 优化设置),但有些臃肿,好在你可以自定义使用哪些功能、关闭哪些功能。自带中文 Read more…

Be the first to comment  Posted by admin - 2010 年 5 月 15 日 at 21:38 Just 2,232 views

  Categories: WordPress经验   Tags: , , ,

单用户版wordpress绑定多个域名的方法

有些人域名很多,但是只是搞了一个WP博客,所以就想给WP绑定多个域名,首页是没有问题的,关键是想连文章页面也是区分不同地址,刚好在群上看到这个一个信息,就顺手的转来给大家,需要的看下吧,我虽然这个博客目前也启用了3个域名,但下面介绍具体操作方法:

首先,需要注意的是,必须是Wordpress个人版,不能是WPMU版.其次是怎么绑定到多个域名上去呢?当然你需要对php有一点了解才行.

好了,废话少说,看操作方法.

第一种方法:首先,把wordpress所有文件上传到你的空间,然后把所有的域名指向到你的空间目录.

然后,打开wp-config.php,并进行如下编辑.为了简单一点,我提供几个例子,比如你有3个域名需要绑定,free5.org,freeg.pp.ru,xya.in,那么wp-config.php就会如下:

Read more…

Be the first to comment  Posted by admin - 2010 年 5 月 6 日 at 10:53 Just 2,171 views

  Categories: WordPress经验   Tags: , ,

用.htaccess实现域名指向子目录功能

我购买的webhostingpad空间虽然支持Parked Domains(域名停靠)功能,但停靠的域名只能指向网站根目录即主域名(如我的http://roadh.net),如果想将域名(如http://xyc.pp.ru)停靠到我在此空间上建立的子网站(通过Addon Domains功能建立)(如http://xya.in)上,单靠cpanel控制面板提供的功能是无法实现的,好在该空间支持.htaccess文件重写功能,现就将实现方法介绍如下:

1、首先在xyc.pp.ru的dns中将其cname到xya.in上;

2、编辑网站根目录下.htaccess文件,添加如下内容:

Read more…

3 comments  Posted by admin - 2010 年 2 月 10 日 at 12:53 Just 5,681 views

  Categories: WordPress经验, 建站经验   Tags: , , , , , , , , , ,

将wordpress博客迁到新的地址或修改域名的方法

果你改变了网站的域名或者迁到了新的地址,你就需要使用 phpmyadmin 来修改数据库,主要是 siteurlhome 这两项。

1 . 登录你的网站主机的控制面板,进入 MySQL 数据库的 admin 页面。

2 . 打开 phpmyadmin

3 . 在左边的下拉列表栏里选择正确数据库,然后选择 options

Read more…

2 comments  Posted by admin - 2009 年 11 月 16 日 at 14:19 Just 3,402 views

  Categories: WordPress经验, 建站经验   Tags: , , , ,

用.htaccess 文件帮你逃离Feedsky的不稳定

托管 Feed 有很多好处,但这些好处都要基于一个前提 —— Feed 托管商足够强健。自从使用 Feedsky 以来我不但没有体验到好处,积攒的怨念倒是3天3夜都散不完。我谁也不赖。要怪就怪自己当时贪图小利,明知道 Feedsky 不好,冲着话题广告还是头也不回地上了船。要说在 Feed 这个问题上我还有一点明智的话,那应该是绑定了二级域名。

Read more…

1 comment  Posted by admin - 2009 年 5 月 18 日 at 20:58 Just 2,316 views

  Categories: WordPress经验, 建站经验   Tags: ,

实战讲解.htaccess文件之rewrite规则

.htaccess文件大家都不陌生吧。不认识的自己去搜一下……顺便告诉你,这是个好东西,值得一学。

似乎网上关于.htaccess编写方法的教程很有限,相信博主们也没有几个是自己写的吧?
我在这里就搜了几个常用规则,总结一下rewrite规则的用法。当然这只是.htaccess功能的一小部分,但是相当实用。
如果熟练掌握rewrite规则的编写,能够加强对网站URL的控制,对用户体验、SEO都十分有利。 Read more…

Be the first to comment  Posted by admin - at 20:26 Just 1,495 views

  Categories: 建站经验   Tags: ,

wp-hive插件,让您的一个WordPress变成多个博客(多域名分别显示)

标题的意思是:用一套WordPress源程序来驱动多个域名的WordPress博客。( Multiple WordPress Blogs with a Single Installation)

工具:wp-hive插件

好处:1.不用每次WordPress升级时都多个博客分开升级,费时。

2.节省空间,一套wp解压后也要4兆多呢,再加上插件,主题等。

3.充分利用一个数据库。

4.没想好。用这个插件的朋友给我们说说吧。

================使用方法=====================

友情提示:这类插件使用之前,请备份你的数据库!

请你遵照如下步骤进行,【千万】别颠倒了!

 

 

1.按照正常程序安装你的主博客(第一个博客)。

2.将wp-hive文件夹上传到/wp-content/plugins/目录。

3.将/wp-hive/db.php移动到/wp-content/目录。(不用激活插件之类的。)

4.马上打开你的主博客,wp-hive会自动配置数据库,添加wphive_config和wphive_hosts两个表。(记住一定是用你的主域名打开)

5.将第二个博客的域名绑定到第一个博客的目录。(可以是子域名,也可以是顶级域名)(其实这步你可以之前做好)

6.访问第二个域名,安装。(wp-hive自动会识别出这个是第二个博客的。)

7.在第二个博客的后台激活wp-hive插件。

重复5,6,7步,你就可以安装多个博客了。

================注意事项=====================

1.我说第五步可以先进行,但是千万别在第三和第四步之间就访问你的第二博客域名,那么wp-hive会将其记录为主域名了。

2.如果真的发生以上的情况,请删除数据库中的wphive_config和wphive_hosts表。

================特殊文件=====================

对于’sitemap.xml’, ‘robots.txt’, and ‘favicon.ico’这些文件,wp-hive会另外处理。

你要做的是:

1.别让这些文件出现在根目录里。

2.将每个域名所要使用的文件放在 /wp-content/wp-hive/domainname.com/  下即可。

==================卸载======================

不是要删除你的博客,请不要卸载哦。

1.禁用子博客里的wp-hive

2.删除数据库中的wphive_config和wphive_hosts表。(彻底卸载了。)

================官方文档=====================

1.http://wp-hive.com/documentation/

2.WordPress.org下载地址:http://wordpress.org/extend/plugins/wp-hive/

3 comments  Posted by admin - 2009 年 3 月 12 日 at 11:30 Just 3,489 views

  Categories: WordPress经验   Tags: ,

巧妙使用Domain Mirror Plugin插件让您的WordPress博客支持多域名访问

您是不是想让多个域名同时指向一个博客?每个域名的标题还各不相同?并且所有的文章均以各自的域名的地址存在而非其他插件的自动指向主域名?

现在就让Domain Mirror来帮您实现这一梦想吧。

下面是其作者页面的详细说明(英文的!我将在近期以最简单的方式来加以说明!)

(简单地说就是已经支持2.7版了,首先是下载插件安装,启用,然后在设置菜单中找到Domain Mirror项,按提示依次输入您想停靠的域名,标题、小标题、博客显示url(填两次),最后,最重要的也就是你必须将这些域名停靠在购买空间的主域名上--在DreamHost空间是通过mirror项来解决!)--祝您好运!

WordPress 2.7: Works.
WordPress 2.6.2: Works.
WordPress 2.6.1: Works.
WordPress 2.5: DomainMirror seems to work with no changes on this version, as long as the 2.3 patch is in place.

Download: Domain Mirror v1.1

Download: Domain Mirror v1.2beta

Download: WP-DomainMirror WordPress 2.3 fix

If you have more than one domain and want to point both of them at the same WordPress installation, you’ll find that it doesn’t really work very well. WordPress creates it’s own internal URLs based on the settings in General Options. This Plugin allows multiple domains to be configured within WordPress and updates the Weblog Title, WordPress Address URL and Blog Address URL on-the-fly based on the value of $_SERVER[‘SERVER_NAME’].

This allows one installation to show different URL paths, tagline and blog title for each domain.

What it won’t do is make one domain appear to be two, or change your domain configuration. You need to do that yourself, or have your hosting provider do it for you.

To see it in action, you can access this site via http://McAleavy.org or http://LightPainting.org. Both point to a single WordPress installation, running on a single database.

NB: It doesn’t appear to work with WordPress MU.

New in v1.1

  1. You can now have a separate tagline on each domain.
  2. The Admin screen has a button to copy in the current WordPress configuration to save on typing.
  3. The Admin screen has buttons to clear content from whole domains and indivudual lines.

New in v1.2beta

This version is pretty new, contains quite a few changes, and may have bugs. Please use it if you’d like to help find them.

  1. Theme switching.
  2. SERVER_NAME / HTTP_HOST config option.
  3. “no admin screen” switch.
  4. More validation.
  5. Added “stripcslashes”

Installation

  1. Download and unpack the archive. If you downloaded the plugin from my site it will unpack to a directory named “AA-DomainMirror”, but if you got it from the WordPress plugin repository it will unpack to the direcotory “domain-mirror”. Either will work, but you may need to rename the latter to “AA-DomainMirror” if you have problems with some other plugins not seeing the changes. See below.
  2. Copy the whole AA-DomainMirror directory to wp-content/plugins/ If possible, don’t change the name of the directory, as the AA- at the start is a horrible hack to ensure that WordPress loads this plugin first. This is required as any plugin loaded before it won’t be able to see the changes it makes, so will behave as if it’s still on the default domain. This puzzled me for quite a while.
  3. Go to your Plugins page and activate Domain Mirror.
  4. Go to the Options -> Domain Mirror page and configure as outlined below.

Upgrade

Overwrite the old version with the new version.

Usage

When enabled, Domain Mirror will change the values of Weblog Title, Tagline, WordPress Address and Blog Address automatically. Where you have hard-coded the site name or a site URL into a post or page you should replace that entry with one of the tags provided. See below.

Configuration

Click the images to expand.

You will need to set up at least 2 domains that point to the same WordPress install. With Apache you can do that with Virtual Hosts. If you are using a hosted account there may be some way to set this up through the account configuration screens. On the host I use for this site, DreamHost, you do this by logging into the Panel interface and selecting Domains >> Manage Domains. Your first domain must be Fully Hosted. For the Domain you want to set as the Mirror, click the edit button. In the edit screen there are 5 options:

  1. Fully Hosted;
  2. Redirected;
  3. Mirrored;
  4. Parked;
  5. Cloaked.
DreamHost Mirror Settings

DreamHost Mirror Settings

 

Select the Mirrored option, and set Domain to mirror to the name of your Fully Hosted domain. Shown here is this setting for my lightpainting.org domain, which mirrors mcaleavy.org.

Options Before

Options Before

 

Your existing WordPress configuration should be left as it is. This will not be changed unless you press Save on this page when viewed from a domain other than the default. See below.

Domains Before

Domains Before

 

On initial activation, the Domain Mirror options screen will display a default blank entry. This default is defined in conf.inc.php – which can be edited to set different defaults. The post tags used to display the current setting of these fields in posts or pages are shown to the right. Add this text to a post or page and it will be replaced by it’s value for the current domain. This allows such posts to display properly from any configured domain.

First Domain

First Domain

 

Fill in the settings for the current domain, or press the Get Current Domain button to get the values from the database. This is recommended because the General Options page will show the Domain Mirror configured settings when accessed from another domain. If you then press Save on that page those options will be written to the WordPress settings, overwriting the original settings. If you don’t have those settings in Domain Mirror, they will be lost and the original domain will not function properly until they are re-entered. If Save is not pressed, the original values will be retained and will be used again when the plugin is disabled.

Changes Saved

Changes Saved

 

Click the Save button to record the changes. The screen will reload and display the Changes Saved banner.

New Blank Domain

New Blank Domain

 

To add another domain, click the Add New Domain button. The page will refersh with a 2nd blank domain.

Second Domain

Second Domain

 

Fill in the details for the 2nd domain, and click Save Changes.

SiteBefore.jpg

SiteBefore.jpg

 

Now, when viewed using the first domain, the site remains unchanged.

Site After

Site After

 

When viewed using the second domain, the site appears as if configured for that domain.

Options After

Options After

 

The General Options screen, when accessed from the new domain, now displays the details for that domain. These options, however, are coming from the Domain Mirror configuration and not from the WordPress settings. As noted before, if save is pressed on this page these options will be written to the WordPress settings, overwriting the original settings. If you don’t have those settings in Domain Mirror, they will be lost and the original domain will not function properly until they are re-entered.

To delete a domain, press the Delete Domain button and it will be removed from the page. This change will be written to the database when you next press Save Changes. If you delete all of the entries in Domain Mirror it will return to it’s default settings. If you wish to alter these defaults you can edit the file config.inc.php in the AA-DomainMirror directory. The “X” buttons on each line can be used to clear the contents of that line and the Clear All button can be used to clear the contents of that domain setting. Again, pressing Save Changes is rquired to make these changes permanent.

4 comments  Posted by admin - 2009 年 3 月 11 日 at 12:04 Just 20,863 views

  Categories: WordPress经验   Tags: , ,