How to fix duplicate URLs from Embedded Twitter Feed
-
We have an embedded twitter feed on our blog and we're seeing that every time we create a new post, a twitter url is created, thus resulting in duplicate content.
Example:
Blog post URL: http://domain.com/blog-title
Duplicate URL automatically created: http://domain.com/blog-title/www.twitter.com/handlenameWhat is the best way to fix this?
-
Seems strange that the duplicate url is being created - without knowing if you've used the Twitter embed option or a plugin, it's a bit difficult to figure out the issue. You're probably better off solving it by fixing the duplication issue, rather than hiding it with a redirect, as you'll end up with a large number of redirects in place if it continues...
If you did just want to redirect everything, then the easiest would be to add a redirect via .htaccess for anything /www.twitter.com to redirect to the proper blog post title.
Honestly, I'd question having the Twitter feed on your blog? If it's just your own posts appearing, then it's not going to offer any value over having a follow button - it's only if it's aggregating multiple sources that it's worthwhile...