Hey guys/gals, sorry to be posting this here, but I''ve tried on multiple message boards and haven''t gotten a reply yet. I''m having some problems with my rewrite rules. There is a rule which *should* be working, but I keep getting 404 errors. According to my server logs, the following url is the cause of most of my 404 errors: http://www.getintothis.com/blog/feed/atom/ I have a rule to handle it, but it just doesn''t want to work. Here is the rule to handle the above condition: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^feed/?$ feed.php [L] RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ feed.php?feed=atom [L] ... </IfModule> And here is the full contents of my .htaccess file.. I appreciate the help: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^(mywork)/?$ index.php?s=$1 [QSA,L] 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] RewriteRule ^wp-atom.php feed.php [L] RewriteRule ^wp-rss.php feed.php [L] RewriteRule ^wp-rss2.php feed.php [L] RewriteRule ^search/?$ index.php [QSA,L] RewriteRule ^search/([^/]+)/?$ index.php?q=$1 [QSA,L] RewriteRule ^search/([^/]+)/record/?([0-9]*)/?$ index.php?q=$1&i=$2 [QSA,L] RewriteRule ^category/([^/]+)/rss2.xml$ feed.php?c=$1 [QSA,L] RewriteRule ^category/([^/]+)/atom.xml$ feed.php?c=$1&feed=atom [QSA,L] RewriteRule ^record/([0-9]+)/?$ index.php?i=$1[QSA,L] RewriteRule ^category/([^/]+)/record/?([0-9]*)/?$ index.php?c=$1&i=$2 [QSA,L] RewriteRule ^category/([^/]+)/?$ index.php?c=$1 [QSA,L] RewriteRule ^archives/([^/]+)/record/?([0-9]*)/?$ index.php?a=$1&i=$2 [QSA,L] RewriteRule ^archives/([^/]+)/?$ index.php?a=$1 [QSA,L] RewriteRule ^post/([^/]+)/?$ index.php?p=$1 [QSA,L] RewriteRule ^trackback/([^/]+)/?$ index.php?p=$1&action=trackback [QSA,L] RewriteRule ^static/([^/]+)/?$ index.php?s=$1 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([^/]+)/?$ index.php?p=$4&y=$1&m=$2&d=$3 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{2})/([^/]+)/?$ index.php?p=$3&y=$1&m=$2 [QSA,L] RewriteRule ^page/([0-9]+)/?$ index.php?i=$1 [QSA,L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [S=45] RewriteRule ^(mywork)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L] RewriteRule ^(mywork)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L] RewriteRule ^(mywork)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L] RewriteRule ^(mywork)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L] RewriteRule ^(mywork)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L] RewriteRule ^(contact)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L] RewriteRule ^(contact)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L] RewriteRule ^(contact)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L] RewriteRule ^(contact)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L] RewriteRule ^(contact)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L] RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L] RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L] RewriteRule ^page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L] RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L] RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L] RewriteRule ^comments/page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L] RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L] RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L] RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?s=$1&paged=$2 [QSA,L] RewriteRule ^search/(.+)/?$ /blog/index.php?s=$1 [QSA,L] RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L] RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L] RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?category_name=$1&paged=$2 [QSA,L] RewriteRule ^category/(.+)/?$ /blog/index.php?category_name=$1 [QSA,L] RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L] RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L] RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?author_name=$1&paged=$2 [QSA,L] RewriteRule ^author/([^/]+)/?$ /blog/index.php?author_name=$1 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L] RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L] RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L] RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&paged=$2 [QSA,L] RewriteRule ^([0-9]{4})/?$ /blog/index.php?year=$1 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L] RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L] </IfModule> # END WordPress -- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails