Thanks for reply @Paulp but i think you don't answer my question.
1. This extra will not force to rewrite the URL like www.website.tld?index.php?id=1 to www.website.tld
2. This extra will be execute only for Symlinks and what about Resources ? ID one in my example is a resource.
3. This can be done with a simply short code inserted in the Head like this :
<link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]" />
If you want to execute the code only on Symlink you just have to test the Class Key : class_key
- modDocument (for normal Resources)
So my question is : Is it possible to force the URL rewrite if someone try to access page like this ?