Both urls are valid, the have same id:
xxxxxxxxurl.com/?q=1/testblahblahbvlah
xxxxxxxxurl.com/?q=1/testblahblahbvlahblah
So if somebody links to url1 and url2 google thinks i have duplicate content, which is true.
A test has to be ncluded like this (Psyeudo code)
$question = loadQuestion($id);
$myDesiredUrl = formatDesiredUrl($question['title']);
if($_SERVER['REQUEST_URI'] != $myDesiredUrl) {
// hmmh: redirect and/or canonical
} else {
// everything okay url is my desired url
}
I think the core-system has to insetr such code. If I want to do it myself, where should this code be located?