TYPO3 tt news missing news id Redirect
Jump to navigation
Jump to search
If you rename or delete a tt_news entry and some old urls are still accessed, you get an error "no news_id" on the single view page. Better you have a redirect to the list view to get back to a defined content:
[globalVar = GP:tx_ttnews|tt_news < 1]
config.additionalHeaders = HTTP/1.0 301 Permanent Redirect | Location: {$baseurl}news/
[global]
And be sure to define the baseurl constant in your root template.
That even works with realurl or other plugings.