Duplicate content is a sensitive topic. An easy solution to fix that for TYPO3 CMS projects is the extension forcerealurls from Søren Malling (formerly developed by Christian Jul Jensen).
The extension hooks into [‚tslib/class.tslib_fe.php‘][‚isOutputting‘]
and checks if a page is trying to be accessed by an old style URL, and does a 301 redirect to the appropriate URL.
This nice extension has some useful options, too:
- You could automatically strip params, like
no_cache
- It is disabled by default if you’re logged in as backend user
- You could deactivate the functionality if
no_cache
is on. - By default the extension functionality is disabled for an non-0 typeNum
I recommend forcerealurls for every TYPO3 CMS website which uses realurl. Pay attention and prevent duplicate content1!
At the time of writing, the current version - which is working with TYPO3 CMS 6.x - is obtainable only at Github. If you are not using the “git submodule method” to add extensions to your project, you can download the extension also as an zip archive.