正在加载...

Shellex Blog Here

解决奇怪的.htaccess问题

您可能也对这些感兴趣

blog
前些天用BB上的自带浏览器访问我的Blog,打开文章后总是先提示404错误,需要点击“Detai”按钮才能继续。

一直没当回事,因为在偶的Firefox和Chromium上访问一直没问题。

直到昨天XHacker同学告诉我我的feed一直没有更新ye~我才决定好好看看。

  • 先去feedburner的ping中心,手工ping完全没效果。
  • 然后检查是不是Wp的feedburner插件的问题,禁用以后问题依然存在。
  • 编辑feedburner的feed源地址,去掉最后的斜杠(效果不变),提示404错误。

又是404?! (各位同学请注意,问号加感叹号是不规范的用法。)真的很奇怪。因为这些问题以前是没有的。

打开wireshark,发现浏览器在发起第一个请求后服务器返回了404错误,然后再返回正文内容,和BB上的体验一样。

试试服务器上别的兄弟的站点,不用Wp的都没问题,用Wp的有的有问题,有的没问题。

那就看看没问题的那些同学的站点的.htaccess:多一行

RewriteEngine on

加上,404错误解决了。帮骨头也加上。骨头还感叹我的feed没更新很奇怪,他自己不也一样么…

默认首页居然没有index.html,加上:

DirectoryIndex index.php  index.html index.htm

这下好了。TX也加上。

现在朋友们看看我的feed,应该是更新了吧。对了,我的feedburner地址是:
http://feeds2.feedburner.com/shellex-cn
建议使用。

喜欢这篇文章?点下面的按钮分享...
  • Google Bookmarks
  • Facebook
  • del.icio.us
  • Digg
  • Technorati
  • Slashdot
  • Live
  • Reddit
  • StumbleUpon
  • Netvibes
  • Netvouz
  • Ping.fm
  • Twitthis

无流言,不YD。来,留个流言吧!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

有 8 个流言 关于 “解决奇怪的.htaccess问题”

bones7456 Using Mozilla Firefox Mozilla Firefox 3.5 on Gentoo Linux Gentoo Linux Says:

哈哈,看来人多还是有好处的啊~~
我之前都是直接输出RSS,没经过feedburner什么的,也会有问题吗?至少我自己用thunderbird订阅是没发现问题的…

Reply(回复)

shellex (Using Mozilla Firefox Mozilla Firefox 3.5.0.0 on Gentoo Linux Gentoo Linux) reply on July 3rd, 2009 5:22 pm:

@bones7456,
thunderbird应该和Firefox一样会忽略掉这个404而显示在正确的内容
但是像feedburner这种自动化的程序就不一定了

最好用feedburner, 这样如果你的feed地址改了,读者不受影响

Reply(回复)

gza633 Using Debian IceWeasel Debian IceWeasel 3.0.9 on Debian GNU/Linux Debian GNU/Linux Says:

原来是这样啊!

ps:无流言,不YD。来,留个流言吧!──我一直觉得这句很YD

Reply(回复)

Dustman Using Mozilla Firefox Mozilla Firefox 3.0.11 on Ubuntu Linux Ubuntu Linux Says:

我一直有个问题

#include

为什么不是iostream.h

是文件名是iostream 还是编译起自动把.h 编译时加上的

Reply(回复)

shellex (Using Mozilla Firefox Mozilla Firefox 3.5.0.0 on Gentoo Linux Gentoo Linux) reply on July 5th, 2009 10:05 am:

@Dustman,
关于这个,C++标准就要求这么写的
历史上也有使用iostream.h的写法,比如vc 6.0里面

Reply(回复)

cat (Using Chrome 2.0.172.33 on Windows Windows XP) reply on July 7th, 2009 5:17 pm:

@Dustman, 貌似真相是:C++标准库有两套头文件,类似iostream等不带.h后缀的是标准的,因为有std的namespace,应该使用这种。
http://members.gamedev.net/sicrane/articles/iostream.html

Reply(回复)

frankyue Using Mozilla Firefox Mozilla Firefox 3.0.7 on Windows Windows XP Says:

厄,怪不得大家的博客都不会更新,以为都没写呢

Reply(回复)

shellex (Using Mozilla Firefox Mozilla Firefox 3.5.0.0 on Gentoo Linux Gentoo Linux) reply on July 6th, 2009 10:45 pm:

@frankyue,
嘿嘿。你再接着写英文啊

Reply(回复)