[TYPO3-dev] Real Url configuration problem

Nirmalya nirmalya at fivee.in
Sat Jun 24 14:05:45 CEST 2006


Hi Andreas ,
thank you very much.
    BE: http://localhost:8080/myWebsite/typo3/
    info: all the path and information are OK.
& i've added '_DEFAULT' so...
but couldn'l solve it..

1.httpd.conf
added lines:
<VirtualHost 127.0.0.1>
  DocumentRoot "C:/Apache/Apache2/htdocs/myWebsite/"
  ServerName localhost
  RewriteEngine On
RewriteRule ^/typo3$ - [L]
RewriteRule ^/typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php
</VirtualHost>

2.TypoScript:(setup)
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1
config.baseURL = http://localhost:8080/myWebsite/
3.typo3conf/localconf.php
added Line:
   require_once('config_realurlMyWebsite.php');
   content of config_realurlMyWebsite.php is:
$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['EXTCONF']['realurl']['_DEFAULT'] = array(
      'init' => array(
          'enableCHashCache' => 1,
          'enableUrlDecodeCache' => 'TRUE',
          'enableUrlEncodeHash' => 'TRUE',
          'appendMissingSlash' =>'ifNotFile'
      ),
	'fileName' => array (
        'defaultToHTMLsuffixOnPrev' => 1,/**/
          'index' => array(
			  'page.html' => array(
                  'keyValues' => array (
                      'type' => 1,
					)
				),
				'print' => array(
					'keyValues' => array(
						'type' => 98,
					)
				),
				'_DEFAULT'=> array(
					'keyValues' => array(
					)
				),
          	),
      	),
		
    'pagePath' => array(
          'type' => 'user',
          'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
          'spaceCharacter' => '-',
          'languageGetVar' => 'L',
          'expireDays' => 3,
		 'rootpage_id' => 1,
      ),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['http://localhost:8080/myWebsite/'] 
= $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];

Result:
  top Level:
    <a href="home.html" >Home</a>
    <a href="about-us.html" >About Us</a>
    <a href="resources.html">Resources</a>
Next Levels:
    <a href="resources/resource-1.html">Resource 1</a>
    <a href="resources/resource-1/resource1-1.html">Resource1_1</a>

for top level say "Home" or "About Us" is getting browsed.BUT..
Errors:
    When I click over any Next Levels hyperLink say on "Resource 1" or 
"Resource1_1"
or http://localhost:8080/myWebsite/typo3/alt_main.php

--------------------------
Browser shows:
Typo3Logo.gif(image)
Error!
Error. Reason: "resource-1.html" could not be found, closest page 
matching is
--------------------------




More information about the TYPO3-dev mailing list