180690
180690

Reputation: 301

Rewrite URL's only in PHP

I have the following problem. I would like to use my new TYPO3 (version 9). Unfortunately, there is no RealURL for this version. I looked at the RealURL configuration and put my URL parameters in an array. These are normally used by RealURL and output with the associated value. Can I somehow manage this in PHP as well? Possibly write a function and put in an array all URL parameters (which are many) and then outputs me instead of the parameter the corresponding name?

That's what RealURL looked like

'postVarSets' => array(
            '_DEFAULT' => array(
                // Kufer GetVars start
                'OUTPUT1' => array(
                    array(
                        'GETvar' => 'GET_PARAM1',
                    ),
                ),
                'OUTPUT2' => array(
                    array(
                        'GETvar' => 'GET_PARAM2',
                    ),
                ),
                'OUTPUT3' => array(
                    array(
                        'GETvar' => 'GET_PARAM3',
                        'valueMap' => array(
                            'OUTPUT4' => GET_PARAM4,
                            'OUTPUT5' => GET_PARAM5,
...

Thanks

Upvotes: 0

Views: 71

Answers (1)

Georg Ringer
Georg Ringer

Reputation: 7939

The concept of routing changed completely with version 9. The concepts of EXT:realurl don't apply anymore.

Please take a look at the new routing docs, e.g. https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html

Upvotes: 2

Related Questions