[TYPO3-dev] Real Url Problem
Nirmalya
nirmalya at fivee.in
Mon Jun 12 12:13:13 CEST 2006
To configure "realurl " extension
i have configure my website with this following steps below:~
1. "_.htaccess" in root of your TYPO3-installation
added Lines:
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
2. TsConfig :
config.simulateStaticDocuments = 0
config.prefixLocalAnchors = all
config.tx_realurl_enable = 1
config.baseURL = 1
config.baseURL = http://localhost/myWebsite/
3. realurl/ext_localconf.php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS[’SC_OPTIONS’][’tslib/class.tslib_fe.php’][’checkAlternativeIdMethods-PostProc’][]
= ‘EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL’;
$TYPO3_CONF_VARS['FE']['addRootLineFields'].=
',tx_realurl_pathsegment,title';
4.typo3conf/localconf.php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 0,
'enableUrlEncodeHash' => 0,
'appendMissingSlash' =>'ifNotFile'
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'backend.php' => array(
'keyValues' => array (
'type' => 100,
)
),
'print' => array(
'keyValues' => array(
'type' => 98,
)
),
),
),
'postVarSets' => array(
'_DEFAULT' => array (
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['http://localhost/myWebsite']
= $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['http://localhost/myWebsite']['pagePath']['rootpage_id']
= 1;
Problem:
Initially: About Us page was
<a href="http://localhost/myWebsite/index.php?id=4" >About Us</a> and
was working as it was.
but Now for "realurl" configuration it changed as
<a href="about-us.html">About Us</a> after clicking on this link "error:
404" is shown i.e. about-us.html does not exist
More information about the TYPO3-dev
mailing list