• Home
  • Featured Posts
  • Categories
  • About

Force realurl and prevent (basic) duplicate content

by Josef Glatz — 01 Feb 2015 and updated on 08 Apr 2015

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.

  1. http://en.wikipedia.org/wiki/Duplicate_content ↩

Josef Glatz Author

Josef Glatz

jousch@jousch.com

Awesome Dude, TYPO3 enthusiast and passionate photographer. Josef Glatz is a webdeveloper and certified TYPO3 CMS integrator based in Baden near Vienna, Austria. His interests are anything that’s related to computer, from webdesign to webdevelopment to devops to IoT to music to engineering to gaming. Bla bla ;-]

Comments

comments powered by Disqus
2015 • Josef Glatz • Inspiring People To Share!
Proudly published with Jekyll on Thursday, 24 Sep 2015 at 04:12 PM