Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

htaccess example

14 views
Skip to first unread message

Server Spook

unread,
Nov 8, 2007, 2:52:59 PM11/8/07
to apacheh...@googlegroups.com
Better to do like: http://www.askapache.com/htaccess/feedsmith-htaccess.html

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\
/(feed|wp-atom|wp-feed|wp-rss|wp-rdf|wp-commentsrss)(.*)\ HTTP/
[NC,OR]
RewriteCond %{QUERY_STRING} ^feed [NC]
RewriteCond %{HTTP_USER_AGENT} !^(FeedBurner|FeedValidator) [NC]
RewriteRule .* http://feeds.askapache.com/apache/htaccess? [R=307,L]

Some of these are quite accessible by everyone when using the
FeedBurner recommended plugin, FeedSmith

wp-atom.php$ == index.php?feed=atom
wp-rdf.php$ == index.php?feed=rdf
wp-rss.php$ == index.php?feed=rss
wp-rss2.php$ == index.php?feed=rss2
wp-feed.php$ == index.php?feed=feed
(.+?)/(feed|rdf|rss|rss2|atom)/?$ == index.php?category_name=$1&feed=$2
wp-commentsrss2.php$ == index.php?feed=rss2&withcomments=1
feed/(feed|rdf|rss|rss2|atom)/?$ == index.php?&feed=$1
(feed|rdf|rss|rss2|atom)/?$ == index.php?&feed=$1
comments/feed/(feed|rdf|rss|rss2|atom)/?$ == index.php?&feed=$1&withcomments=1
comments/(feed|rdf|rss|rss2|atom)/?$ == index.php?&feed=$1&withcomments=1

Reply all
Reply to author
Forward
0 new messages