I'm writing a web-application, and SEO is very important to us, cause we want to be founded on google sooo much.
So... i writed a Url Rule for posts:
.../post/show/id/100
become
.../post/100-title-of-my-post.html
and i put it in UrlManager. It works, great... but... I see that both the url are still active, and that's not good for us.
I'd like that the second url redirect to the first... this because Google and the other SE don't like the same content on two different url, and this could be potentially a damage for my application and for the project.
Some advice? I could write something like an IF at the beginning of the show action, something like
if(the url is not rewrited){
redirect(createUrl(the-new-cool-url)),
}Thank you!

Help















