typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

Enable 404 Error Handling for Userfunc

Open jmtpix opened this issue 6 years ago • 1 comments

Because of some old content in the Google Index i tried to get a 404 Error for no longer existing subpages configured via userfunc in the fixedPostVars. So I update the UrlDecoder Class and added the following to the realurl configuration: array( 'GETvar' => 'myVar', 'enable404forInvalidAlias' => 1, 'userFunc' => .... )

If there was already an existing way to do this, I'm sorry I wasn't able to find it. :)

jmtpix avatar Dec 14 '17 13:12 jmtpix

Why can't userFunc throw error itself?

dmitryd avatar Apr 02 '18 10:04 dmitryd