I have a unique kind of question that I've been wrapping my brain around. Google is penalizing us with duplicate content because you can access our single blog posts both by going to:
as well as :
The option we really want is:
and if a user or googlebot happens to goto:
redirect them to:
I know this is a particular situation, but we have many custom post types in our system. So our structure looks like this.
http://www.domain.com/food/pizza http://www.domain.com/ice-cream/strawberry http://www.domain.com/fireworks/bottle-rockets
Ideally, what I would like to do is find some kind of filter that logically checks if the post_type is post and redirect:
I tried modifying the register_post_type for the post object, and adding with_front => false and adding blog to the slug, but that doesn't work.
I was able to add /blog/%postname%/ to the permalink structure, and I was successfully able to have a decent structure going that was working, but I got stuck on the taxonomies. When I went to a taxonomy page, I had to goto:
was giving me a 404. So even if I can find a way to make the taxonomies work to where I can do:
that would be awesome! As another side note, I also added with_front to the register_taxonomy, but that was not doing anything either. I even hard flushed the rewrites on all the changes I did.
I know this is a lot, but my brain cannot go any further.. lol
Any insight on this?