[TYPO3] Problem with RealURL and table tx_realurl_errorlog

Dmitry Martynenko dima at realt.by
Fri Jan 4 16:08:07 CET 2008


Hi List!

I has noticed one annoying bug when setup error 404 handling.
In stats there is a huge number of views page /404/ and there
is huge number of new records in tx_realurl_errorlog table.

Almost every of records in tx_realurl_errorlog has URL value like
"user/fileadmin/realt/favicon.ico" or
"sale/cottages/object/30068/photo/fileadmin/realt/favicon.ico"

Of course files "user/fileadmin/realt/favicon.ico" or "sale/cottages/object/30068/photo/fileadmin/realt/favicon.ico"
does not exists. But "fileadmin/realt/favicon.ico" exists!

In my TS config I have:
config.simulateStaticDocuments = 0
config.baseURL = http://realt.by/
config.tx_realurl_enable = 1 

Here generated HTML <header> code - all link relative:
...
<base href="http://realt.by/" />
<link rel="SHORTCUT ICON" href="fileadmin/realt/favicon.ico" />
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_d9cbed278f.css" />
<link rel="stylesheet" type="text/css" href="fileadmin/realt/styles.css" />

When I try to set config.absRefPrefix = http://realt.by/ all links in
HTML <header> code became correct - all link prefixed:
...
<base href="http://realt.by/" />
<link rel="SHORTCUT ICON" href="http://realt.by/fileadmin/realt/favicon.ico" />
<link rel="stylesheet" type="text/css" href="http://realt.by/typo3temp/stylesheet_d9cbed278f.css" />
<link rel="stylesheet" type="text/css" href="http://realt.by/fileadmin/realt/styles.css" />

But all other link generated with RealURL was broken:
http://realt.by/index.php?id=article&tx_ttnews[tt_news]=3036&cHash=bbb48b2ecc
insead of
http://realt.by/news/article/3036/

How can I have full prefixed urls with RealURL ?

-- 
Dmitry Martynenko
Developer

Web: http://realt.by



More information about the TYPO3-english mailing list