[TYPO3-english] RealURL error when www. in address
Neil Haskins
nhaskins at gmail.com
Tue Nov 4 21:25:56 CET 2008
Hi list :)
I'm having an error one of my domains where if I access it as domain.tld
it works, but if I use www.domain.tld I am redirected to
www.domain.tld/domain.tld and I get the error "Error! Reason: Segment
"domain.tld" was not a keyword for a postVarSet as expected!".
If I put a page name which doesn't exist such as www.domain.tld/test
then the address stays that way, but if I put a page name which does
exist like www.domain.tld/about_us it redirects to
www.domain.tld/domain.tld.
The thing is it's only one of my domains which does this, the other one
works fine.
oasisoflove.ca works, evertonweekes.org does not work
Here is my RealURL configuration (based off of
typo3bloke.net/post-details/realurl_made_easy_part_2/)
$tx_realurl_config = array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
),
'preVars' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '_',
'languageGetVar' => 'L',
'expireDays' => 3,
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'evertonweekes.org' => $tx_realurl_config,
'www.evertonweekes.org' => 'evertonweekes.org',
'oasisoflove.ca' => $tx_realurl_config,
'www.oasisoflove.ca' => 'oasisoflove.ca',
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['oasisoflove.ca']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['evertonweekes.org']['pagePath']['rootpage_id']
= 12;
unset($tx_realurl_config);
Any insight is greatly appreciated, thanks.
More information about the TYPO3-english
mailing list