[TYPO3] RealURL woes, still not working.
Felyza Wishbringer
felyza at gmail.com
Sat May 3 00:14:46 CEST 2008
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.
More information about the TYPO3-english
mailing list