[TYPO3-dev] Reaurl extension and preVars settings

Steffen Kamper steffen at dislabs.de
Thu May 17 13:11:11 CEST 2007


"Murpola" <marfi.v at tiscali.it> schrieb im Newsbeitrag 
news:mailman.1.1179396289.16036.typo3-dev at lists.netfielders.de...
> My actual URLs are as follows:
>
>
>
> http://www.mydomain.com/prevar1/path/category/index.html
>
>
>
> and I want to obtain something like:
>
>
>
> http://www.mydomain.com/path/category/index.html
>
>
>
> i.e. without the preVars subpath.
>
>
>
> Previously my localconf for preVars was set as follows:
>
>
>
>  'preVars' => array(
>
>        array(
>
>          'GETvar' => 'no_cache',
>
>          'valueMap' => array(
>
>            'prevar1' => '1',
>
>            'prevar2'=> '0',
>
>          ),
>
>         'noMatch' => 'bypass',
>
>        ),
>
>      ),
>
>
>
> and the url
>
>
>
> http://www.mydomain.com/prevar1/path/category/index.html
>
>
>
> managed correctly.
>
>
>
> Now I've change my localconf as follow:
>
>
>
>  'preVars' => array(
>
>        array(
>
>          'GETvar' => 'no_cache',
>
>          'valueMap' => array(
>
>             'prevar2'=> '0',
>
>          ),
>
>         'noMatch' => 'bypass',
>
>        ),
>
>      ),
>
>
>
> The URL
>
>
>
> http://www.mydomain.com/path/category/index.html
>
>
>
> has been built correctly, but it remind to a 404 error page. So it means
> that the IdtoPath function runs correctly, but the pathtoId doesn't? Or do
> you think is a localconf problem?
>
>
>
> My pagePath is:
>
>
>
>     'pagePath' => array(
>
>         'type' => 'user',
>
>         'userFunc' =>
> 'EXT:realurl/class.tx_realurl_dummy.php:&tx_realurl_dummy->main',
>
>      ),
>
>
>
> Thanks in advance.
>
>

your preVar is a page in your pagetree, right ?
Then try to give this page the flag "hide in menu"

vg  Steffen 






More information about the TYPO3-dev mailing list