How to remove controller and action from realurl + typo3 extbase


This is very important part for SEO Base URL. So we must need to short URL.

We can remove the controller or the action in the RealURL config.

Following should do the trick, which will removes both action and controller from a detail-link.

'faq' => array(
    array(
        'GETvar' => 'tx_jsfaq_faq[action]',
        'valueMap' => array(
            'detail' => '',
        ),
        'noMatch' => 'bypass'
    ),
    array(
        'GETvar' => 'tx_jsfaq_faq[controller]',
        'valueMap' => array(
            'detail' => '',
        ),
        'noMatch' => 'bypass'
    ),
    array(
        'GETvar' => 'tx_jsfaq_faq[faq]',
        'lookUpTable' => array(
            'table' => 'tx_jsfaq_domain_model_faq',
            'id_field' => 'uid',
            'alias_field' => 'question',
            'addWhereClause' => ' AND NOT deleted',
            'useUniqueCache' => 1,
            'useUniqueCache_conf' => array(
                'strtolower' => 1,
                'spaceCharacter' => '-',
                ),
            'autoUpdate' => 1,
        ),
    ),
),	

I hope this will help you more. nojy 😉

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya