Tag Archives: RSS

用 mod_rewrite 重定向 WordPress 的 RSS

不知道为啥,原来的重定向失效了…… 似乎现在没有什么好用的重定向插件,要么是不支持 Feedsky,要么没法用自定义域名,咱不太会 PHP,也懒得 hack 了,所以就祭出 Apache 来做这件事,当然 mod_rewrite 是少不了了。 先说方法,后说其他。在 .htaccess 的最上面加这么几行: 1 2 3 4 5 6 7 8 9 10 # BEGIN user-defined <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator|feedsky) [NC] RewriteCond %{REQUEST_URI} ^/feed.* [NC] … Continue reading

Posted in blogging, Information Technology | Tagged , , , | 2 Comments