[TYPO3] RealURL Problem on 3.8.1 with RealURL 1.0.0

Harald Klotzberg [decomplex audio HQ] harry at decomplexaudio.com
Thu Feb 16 08:25:54 CET 2006


Hello List,

i´ve a strange problem using real-url with Typo 3.8.1 and RealURL 1.0.0 (i
tried 0.3.0, but more problems than with 1.0).
I used it a thousand times on my server (with php as module), but on the
server i currently work there is a CGIWrapper installed,
Symlinks allowed but not from file to file. (Changed file-symlinks for
index.php and showpic.php to original files, works nice)

I want to generate URL´s like that:

http://www.blah.de/subdirectory/test1/test2/parlaber.html

No challenge up to that, Encoding works nice, no prob there!
I installed it to a subdirectory http://www.blah.de/subdirectory/

RealURL works (Logfile seems ok) (tried different versions)
.htaccess as well (tried different versions)
localconf.php as well  (tried different versions, i have some own working
examples)

Decoding works as well, but only for Level1 Menueentries, mhm ...
If i click on L2 or L3 Menueentries i get this:

Error. Reason: "blahblahblah.html" could not be found, closest page matching
is

I checked the Sourcecode of class.tx_realurl.php looking for the code which
outputs this error message and found that:

			// Looking for remaining parts:
		if (count($pathParts))	{
			$this->decodeSpURL_throw404('"'.$speakingURIpath.'"
could not be found, closest page matching is
'.substr(implode('/',$this->dirParts),0,-strlen(implode('/',$pathParts))).''
);
		}


Looking for remaining parts ????!!!
Ok, something must be wrong in decoding, but my rules seems to be ok (see
bottom for sourcecode)

I guess there must be something to fix with the server (httpd.conf etc ...)
i´m not sure (CGIWrapper?)

2nd thing is:
On Systems with working url the output in html files is <base
href="http://www.blah.de/subdirectory/> on every site!
In this case the base directory is <base
href="http://www.blah.de/subdirectory/test1/>
or <base href="http://www.blah.de/subdirectory/test1/test2/> ... but i´m
unable to fix it,
baseURL in TS is correct, tried to use RewriteBase = /subdirectory/ in
.htaccess but doesn´t help as well


I have no more ideas :(

hope someone can help me!

Thanx a lot!


grtz, harry


Sourcecodesnippets (changed url to www.blah/subdirectory/)



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']['checkAlternative
IdMethods-PostProc'][] =
'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_urldecodecache'] =
'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_urlencodecache'] =
'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE'] ['addRootLineFields'] .=
',tx_realurl_pathsegment,alias,nav_title,title';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
		'enableCHashCache' => 1,
		'enableUrlDecodeCache' => 1,
		'enableUrlEncodeHash' => 1,
		'appendMissingSlash' => 'ifNotFile'
	),
	'redirects' => array(),
	'preVars' => array(
		array(
			'GETvar' => 'no_cache',
			'valueMap' => array(
				'no_cache' => 1,
			),
			'noMatch' => 'bypass',
		),
		array(
			'GETvar' => 'L',
			'valueMap' => array(
				'de' => '0',
				'en' => '1',
			),
			'noMatch' => 'bypass',
		),
	),

 	'pagePath' => array(
		'type' => 'user',
        'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'expireDays' => '3',
		'rootpage_id' => '1'
	),
	'noMatch' => 'bypass',

	'fileName' => array (
		'defaultToHTMLsuffixOnPrev' => 1,
		'index' => array(
			'page.html' => array(
				'keyValues' => array (
					'type' => 1,
				)
			),
		),
		'_DEFAULT' => array(
			'keyValues' => array(
				'type' => 1,
			),
		),
	),

);


.htaccess

RewriteEngine On
RewriteBase /subdirectory/ (doesn´t help with or without)
RewriteRule ^/typo3$ - [L]
RewriteRule ^/typo3/.*$ - [L]
RewriteRule ^/typo3conf$ - [L]
RewriteRule ^/typo3conf/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php
#RewriteRule (\.html|/)$ index.php


ts-setup:

# REAL URL
config.simulateStaticDocuments = 0
config.baseURL = http://www.blah.de/subdirectory/
config.tx_realurl_enable = 1 
config.prefixLocalAnchors = all




More information about the TYPO3-english mailing list