[TYPO3] RealURL woes, still not working.
Xavier Perseguers
typo3 at perseguers.ch
Sat May 3 08:56:54 CEST 2008
Hi,
> 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
>
> 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
I do not have any config.hostname in my config.
> My .htaccess
> ------------
> RewriteEngine On
> RewriteBase /
No RewriteBase in .htaccess if I remember well (I do not have it and I
think I had to remove this line as indicated in comments)
> 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]
OK.
> My realurlconf.php
> RootPID 'trick' comes from http://wiki.typo3.org/index.php/RealURL, but I
> also tried using _DEFAULT, to no avail.
You do not need this unless you have multiple domains in your TYPO3 tree.
> -------------------------------------
> <?
> $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']],
'segTitleFieldList' =>
'tx_realurl_pathsegment,alias,nav_title,title',
> 'expireDays' => 7
> ),
> 'postVarSets' => array (
> // [snip]
>
'_DEFAULT' => array(
'hash' => array(
array( 'GETvar' => 'cHash' )
)
),
> '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 ())
> )
> )
> );
> ?>
HTH
--
Xavier Perseguers
http://xavier.perseguers.ch/en
More information about the TYPO3-english
mailing list