Forums and Taxonomy - Reducing Duplicate Content

Events happening in the community are now at Drupal community events on www.drupal.org.
duellj's picture

I'm trying to reduce duplicate content/pages on my Drupal install with Forums enabled, and I noticed that there are two pages with very similar content: a forum page (e.g. form/1) and the corresponding taxonomy page for the forum (e.g. taxonomy/term/1). Google is indexing both pages, and we'd much rather have just the forum page, not the taxonomy page. Is there a way to redirect the taxonomy pages to the forum page, as well as setup new redirects when new forums are added?

I could probably whip up a module to do this, just wondering if there's any existing solutions or a quick fix.

Thanks,
Jon Duell

Comments

Try a permanent redirect via .htaccess

bgilday's picture

You should be able to achieve a permanent redirect by adding the following line to your .htaccess file.

RedirectMatch 301 /taxonomy/term/(.*) /forum/$1?

I hope this helps.

Brian Gilday
Managing Partner
Aha Consulting
www.ahaconsulting.com

Brian Gilday
Municode
www.municode.com

Thanks Brian, I was actually

duellj's picture

Thanks Brian,

I was actually debating whether to use this method (with tylerwalts). I think this will work for now, since the site doesn't have any other taxonomy vocabularies besides the forums vocabulary.

I also ran across the Taxonomy Redirect module, which does half the job (transforming taxonomy links), but doesn't actually redirect taxonomy (hopefully in a future version).

Thanks,
Jon

Portland (Oregon)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: