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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s