在FeedSky和FeedBurner中无缝切换
如果你和使用子域名(即http://feed.lostie.cn/)来更新feed的话,可以使用301重定向到feedburner,来解决这个问题.
首先将子域名的CNAME记录改为A记录,指向到自己的服务器.然后在服务器上建立一个feed站点,由于我是使用HM的主机,所以可以直接在子域名设置那里重定向到feedburner.
或者你使用的主机无法这样设置.那么可以利用.htaccess
以下是我的规则
Options +FollowSymLinks
rewriteEngine on
rewriteCond %{http_host} ^feed.lostie.cn[NC]
rewriteRule ^(.*)$ http://feeds.feedburner.com/catrss/$1 [R=301,L]
rewriteEngine on
rewriteCond %{http_host} ^feed.lostie.cn[NC]
rewriteRule ^(.*)$ http://feeds.feedburner.com/catrss/$1 [R=301,L]
如果你的服务器不支持.htaccess,那么这里给出PHP和ASP的301重定向
PHP的
ASP的(没测试)
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.laolin.net/"
Response.End
Response.AddHeader "Location","http://www.laolin.net/"
Response.End