[TYPO3] RealURL woes, still not working.

Saurabh saurabh at srijan.in
Sat May 3 09:06:25 CEST 2008


Hi Felyza,

Have you made the required changes in your .htaccess file? If not, add 
following lines at the end of .htaccess :-

RewriteEngine On
RewriteRule ^/typo3$ - [L]
RewriteRule ^/typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php

Also add following lines to root page typoscript:-

config.simulateStaticDocuments = 0 \
config.baseURL = http://www.yoursite.com/
config.tx_realurl_enable = 1

Also you can use "urltool" plugin to change ids into speaking urls...

Cheers,
Saurabh
> Hi list.
>
> I've been trying for most of the day to get RealURL working. I've visited
> the docs, wiki, archives, and various locations Google has spit out to me.
> It does make a change, but nowhere near what I want, and I've yet to get any
> customization working. For reference, page title of UID 51 is profile, and
> 45 is dev blog.
>
> Here's what I'm getting...
> --------------------------
> http://www.mydomain.com/51/?tx_srfeuserregister_pi1%5Bcmd%5D=create
> http://www.mydomain.com/45/
> http://www.mydomain.com/51/?tx_srfeuserregister_pi1%5BregHash%5D=9a51053a4b1
> 756ebce88
>
> Here's what I'm wanting...
> --------------------------
> http://www.mydomain.com/profile/user/create
> http://www.mydomain.com/dev-blog/
> http://www.mydomain.com/profile/user/9a51053a4b1756ebce88
>
> Without RealURL...
> ------------------
> http://www.mydomain.com/index.php?id=51&tx_srfeuserregister_pi1[cmd]=create
> http://www.mydomain.com/index.php?id=45
>
> My template setup
> ------------------
> config.simulateStaticDocuments = 0
> config.baseURL = http://www.mydomain.com/
> config.tx_realurl_enable = 1
> config.hostname = http://www.mydomain.com
> config.prefixLocalAnchors = all
>
> My .htaccess
> ------------
> RewriteEngine On
> RewriteBase /
> RewriteRule
> ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favic
> on\.ico)/ - [L]
> RewriteRule ^typo3$ typo3/index_re.php [L]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* /index.php [L]
>
>
> My realurlconf.php 
> RootPID 'trick' comes from http://wiki.typo3.org/index.php/RealURL, but I
> also tried using _DEFAULT, to no avail.
> -------------------------------------
> <?
> $GLOBAL[$RootPID]= array('www.mydomain.com' => '24','mydomain.com' =>
> '24',); 
>
> $GLOBALS[$TYPO3_CONF_VARS]['EXTCONF']['realurl']=array(
>    'init' => array(
>       'useCHashCache' => 0,
>       'enableCHashCache' => 1,
>       'enableUrlDecodeCache' => 1,
>       'enableUrlEncodeHash' => 1
>    ),
>    'pagePath' => array(
>       'type' => 'user',
>       'userFunc' =>
> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>       'spaceCharacter' => '-',
>       'languageGetVar' => 'L',
>       'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']],
>       'expireDays' => 7
>    ),
>    'postVarSets' => array (
>       'user' => array(
>          array('GETvar' => 'tx_srfeuserregister_pi1[regHash]'),
>          array('GETvar' => 'tx_srfeuserregister_pi1[cmd]')
>       ),
>       'date' => array (
>          array ('GETvar' => 'tx_ttnews[year]'),
>          array ('GETvar' => 'tx_ttnews[month]'),
>          array ('GETvar' => 'tx_ttnews[day]'),
>          array (
>             'GETvar' => 'tx_ttnews[tt_news]',
>             'lookUpTable' => array (
>                'table' => 'tt_news',
>                'id_field' => 'uid',
>                'alias_field' => 'title',
>                'addWhereClause' => ' AND NOT deleted AND NOT hidden',
>                'useUniqueCache' => 1,
>                'useUniqueCache_conf' => array (
>                   'strtolower' => 1,
>                   'spaceCharacter' => '-'
>                )
>             )
>          )
>       ),
>       'show' => array (
>          array (
>             'GETvar' => 'tx_lzgallery_pi1[showUid]',
>             'lookUpTable' => array (
>                'table' => 'tx_lzgallery_galleries',
>                'id_field' => 'uid',
>                'alias_field' => 'title',
>                'addWhereClause' => ' AND NOT deleted',
>                'useUniqueCache' => 1,
>                'useUniqueCache_conf' => array (
>                   'strtolower' => 1,
>                   'spaceCharacter' => '-',
>                )
>             )
>          )
>       )
>    ),
>    'fileName' => array (
>       'defaultToHTMLsuffixOnPrev' => 0,
>       'index' => array (
>          'rss.xml' => array (
>             'keyValues' => array (
>                'type' => 100
>             )
>          ),
>          'print.html' => array (
>             'keyValues' => array (
>                'type' => 98
>             )
>          ),
>          '_DEFAULT' => array ('keyValues' => array ())
>       )
>    )
> );
> ?>
>
> Any help is greatly appreciated.
> -Felyza
> P.S. Yes, I am showing 'mydomain' as the domain. 
> P.P.S. No, the correct domain is used in my settings.
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list