I'm using :
- Typo3 v6.2
- News extension v3.2.6
- RealURL v2.0
I began an optimization projet of the all website and i'm currently handling issues about URLs. I noticed that all my news has 2 distinct URL :
- http://www.mycompany.com/whats-new/news/spotlight/article/this-is-my-first-article/
- http://www.mycompany.com/whats-new/news/spotlight/article/this-is-my-first-article/detail.html
How to fix this issue and redirect [...]/detail.html
to the another one ?
Here my realurl configuration :
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'_DEFAULT' =>
array (
'init' =>
array (
'appendMissingSlash' => 'ifNotFile,redirect',
'postVarSet_failureMode' => '',
'emptyUrlReturnValue' => '/',
'emptySegmentValue' => 'default',
),
'pagePath' =>
array (
'rootpage_id' => '1',
'languageGetVar' => 'L',
'expireDays' => 30
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'fr' => '2',
'de' => '3',
),
'noMatch' => 'bypass',
),
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 0,
'index' =>
array (
'print.html' =>
array (
'keyValues' =>
array (
'type' => 98,
),
),
'resultats.html' =>
array (
'keyValues' =>
array (
'tx_indexedsearch_pi2[controller]' => 'Search',
'tx_indexedsearch_pi2[action]' => 'search',
),
),
),
),
'postVarSets' =>
array (
'_DEFAULT' =>
array (
'article' =>
array (
0 =>
array (
'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' =>
array (
'table' => 'tx_news_domain_model_news',
'id_field' => 'uid',
'alias_field' => 'title',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'category' =>
array (
0 =>
array (
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' =>
array (
'table' => 'sys_category',
'id_field' => 'uid',
'alias_field' => 'title',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
),
);
?>
Thanks !