WordPress多用户模式子站点无法加载CSS?

21今天突然手闲,想试试传闻已久的WordPress多站点模式(WordPress Multisite),于是用手上的一个DirectSpace年付的VPS(性能?淡定……)临时搭建了一个LAMP,按照WordPress Codex的操作一步一步对WordPress进行修改,按照子目录的形式最后写入 .htaccess 并建立了子站点,但是出现一个问题,子站点可以访问,但是无法加载CSS和图片等东西。

初步判断应该是 .htaccess 里面Rewrite规则可能有问题,但那是官方提供的,不应该吧……
于是通过Google大神一番搜索,确定是Rewrite规则有问题,并将 .htaccess 文件替换为以下内容后工作正常:

WordPress Multisite Based Sub-folder Mode

————————————————我是分割线————————————————

我刚才重新弄了一下想重演故障,结果发现没问题了,记得看过一篇POST提到WP有个缓存机制导致了这个问题,不过我把 .htaccess 更新了以上代码后,就工作正常了,一时也没留意是否跟WP给出的范例代码是否有所不同,纠结了……放这儿备查吧。

————————————————我是分割线————————————————

Update: Jan 13th, 2011
终于发现问题所在了,由于我手欠,没有使用启用Network功能时 /wp-admin/network.php 提供的 .htaccess 内容,而直接使用了Codex.WordPress提供的Rewrite规则,于是 ……
来自Codex.WordPress的Rewrite规则呈现如下(无法工作的,仅供参考,别用……):

主要区别在于以下两句,正好影响到的是主题布景(Theme)、后台管理等功能:

有效的规则:

无效的规则:

-EOF-

——————–
引用参考:
WordPress Support: http://wordpress.org/support/topic/wp-multisite-htaccess-not-working
Perishable Pre: http://perishablepress.com/press/2010/07/07/htaccess-code-for-wordpress-multisite/
WordPress Codex: http://codex.wordpress.org/Migrating_Multiple_Blogs_into_WordPress_3.0_Multisite
WordPress Codex: http://codex.wordpress.org/Create_A_Network

Name的邮件回复

四月优惠码的PO里面,我提到了我会发邮件向name说明我国人民无法访问推特和脸书,希望他们能在邮件里面提供一些优惠码给我,然后今天他们回邮了,告诉我说本月没有任何优惠码,以下是整个过程的邮件对话并会持续更新直到问题解决(英文水平不是很好,请多包涵):

Update: Apr 5th, 请点击
Update: Apr 9th, 回答访客Vsisi提到的一些疑问,同时也说明我这次「找茬」的理由,请点击

RE: Get Promo Code. [ ref:00D8csHM.50089VlG3:ref ]‏
From: no-reply@salesforce.com on behalf of Name.com Support (support@name.com)
Sent: Saturday, April 03, 2010 3:56:21 PM
To: live21@msn.com (live21#msn.com)

Hello,

Thank you for contacting us. We do not have any promotional codes available yet this month. Please check back with us in a couple of weeks.

Thank you for choosing Name.com
Erika
Name.com

————— Original Message —————
From: Benny Chen [live21#msn.com]
Sent: 4/2/2010 7:07 PM
To: support@name.com
Subject: RE: Get Promo Code. [ ref:00D8csHM.50089VlG3:ref ]

Hello Zach,

I’m sorry for I can’t visit twitter and facebook in our country, I think you know it, I’m in China, so Can you give me some promo code for domain name registrations in this mail?

Thanks a lot!

– Benny

> Date: Fri, 2 Apr 2010 14:52:48 +0000
> From: support@name.com
> To: live21#msn.com
> Subject: RE: Get Promo Code. [ ref:00D8csHM.50089VlG3:ref ]
>
> Hello:
>
> The best way to find out information on upcoming promotions or specials is to follow us on Facebook or Twitter:
>
> Facebook: http://www.facebook.com/pages/Namecom/40529942806
>
> Twitter: http://twitter.com/namedotcom
>
> Please let us know if you have any further questions and thank you for choosing Name.com!
>
> Regards,
> Zach
> Name.com
> support@Name.com
>
> ————— Original Message —————
> From: Benny Chen [live21#msn.com]
> Sent: 4/1/2010 9:22 PM
> To: support@name.com
> Subject: Get Promo Code.
>
> Hi, –
>
> Can you give me some promo code for domains register in Name.com at this month?
>
> Thanks a lot!
>
> – Benny

相比GoDaddy每次都不遗余力的给客户SPAM优惠码,NAME的态度在我看来现在是非常的傲慢了,明明是有公布优惠码的,但是因为我不能访问Twitter和Facebook而告诉我没有任何优惠,这样欺骗用户的用心何在?费解。
我已经继续发邮件质问他们为什么骗我了,请静候更新。

P.S, Blogfocus.net转入GD成功。

——————————————— Continue reading Name的邮件回复

.TEL Promo Code | Name.com

2010年2月特别优惠码

Special Promo Code | February

MACWORLD | $8.99 .TEL registrations
Name.com’ll be running that promo until the end of the month

Previous one
Promo Code | February

CRUSHIT //本月Name.com开放了一个优惠码CRUSHIT,有以下用途:
$8.09 .COM/.NET registrations //以优惠价8.09美金注册.COM/.NET域名
$20.66 .TV registrations //以优惠价20.66美金注册.TV域名
15% off all hosting plans (monthly and yearly) //购买任何空间将优惠15%(支持月付和年付)

Name.com Promo Code | January 2010

2010年01月Name.com 最新优惠码

Promo Code | January
PROMO19735 | $8.25 COM Registration
PROMO71403 | $8.20 COM/NET Renewal
PROMO04582 | $8.15 INFO/ORG Renewal

Promo Code | December 2009
KILLIGREW | $14.99 Domain Nabber
CRICKETT | $8.25 COM/NET Renewal
OMALLEY | $8.20 COM Registration

Mr. 21提供的Name.com优惠码均是官方提供正品,不存在返点虚假等问题,可以随便使用。

Name.com Promo Code | December 2009

2009年12月Name.com 最新优惠码

Promo Code | December
KILLIGREW | $14.99 Domain Nabber
CRICKETT | $8.25 COM/NET Renewal
OMALLEY | $8.20 COM Registration

Promo Code | November
Hello,

Thank you for contacting us. Unfortunately, we do not currently have any promo codes for domain registrations. We apologize for the inconvenience. We urge you to check back often to see if we have released any new codes.

Kind regards,
Courtney
name.com

Mr. 21提供的Name.com优惠码均是官方提供正品,不存在返点虚假等问题,请放心使用。

Name.com Promo Code | September 2009

2009年9月Name.com 最新优惠码

Promo Code | September
Hello,

Good to hear from you. Unfortunately, we are not offering any promo codes for the month of September. We apologize for any inconvenience and thank you for choosing Name.com!

Regards,
Sky
Name.com
——————-

Promo Code | August
SOUTHBEACH $8.09 COM/NET Renewals
MARAGOGI $7.99 COM/NET Registration

Btw, Name真有够小气的……
如果需要在Name.com上注册域名,请试试之前的七月(July)八月(August)的优惠码。

Name.com Promo Code | July 2009

2009年7月Name.com 最新优惠码

Promo Code | July
NAMORADA | $8.29 .COM, .NET, .ORG Renewal
CORACAO | $7.49 NET Registration
ELAMEXE | $7.99 COM Registration

Promo Code | June
STAPLETON | $8.20 .COM Registration
PARKHILL | $7.00 .NET Registration
WASHPARK | $8.40 .ORG & .BIZ Registration
CHERRYCREEK | $8.25 Renewal (com net org info biz)
CAPITOLHILL | $12.50 .IN Renewal