inicio mail me! sindicaci;ón

Some help with mod_rewrite rules

Ok, I'm pulling out my hair here (which there isn't much of since I just shaved my head) and I can't figure out why this isn't working. If anyone out there is a RegExp and mod_rewrite expert, please help me out!

I noticed today from my server logs that I am getting a lot of 404 errors coming from the following url: http://www.getintothis.com/blog/feed/atom/

So, I tried to modify my .htaccess file to force that url to point to the feed.php file that is being used by the rest of my feeds. This is a section of my .htaccess file pertaining to the feeds. I added the first two lines in hopes of resolving this issue, but I'm still getting 404 errors.

Why is it that ^atom.xml points to feed.php?feed=atom just fine, but my rules don't wotk? Somebody please help me out here. Thanks.

RewriteRule ^feed/?$ feed.php [L]
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ feed.php?feed=atom [L]
RewriteRule ^rss2.xml feed.php [L]
RewriteRule ^atom.xml feed.php?feed=atom [L]

jase said,

May 25, 2005 @ 5:59 pm

I believe you’re missing an @ sign somewhere. Or not, I don’t know.

ludo said,

May 30, 2005 @ 4:18 am

Send me your complete .htaccess

traductor italiano said,

November 27, 2005 @ 7:40 am

The Apache module mod_rewrite is a killer one, i.e. it is a really sophisticated module which provides a powerful way to do URL manipulations. With it you can do nearly all types of URL manipulations you ever dreamed about.

RSS feed for comments on this post · TrackBack URI

Leave a Comment