small bug in feed url found
When checking my google crawling stats today i noticed lots of 404 errors which resulted from crawling non existing feed urls. The problem is in the archive-default.php line 25
<div id="catrss"><a href="<?php get_category_link($cat) ?>feed/"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" width="16" height="16" alt="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" title="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" /></a></div>
If you have more than one page in a category this results in urls like yourdomain.com/category/category1/page2/feed/
yourdomain.com/category/category1/page3/feed/
yourdomain.com/category/category1/page4/feed/
etc. which don`t exist.
so i changed the code into the following.
<?php if(is_category() && !is_paged()) { ?>
<div id="catrss"><a href="<?php get_category_link($cat) ?>feed/"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" width="16" height="16" alt="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" title="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" /></a></div>
<?php } ?>