url rewriting - typo3 realurl show only one segment in url -
i working on realurl's in typo3 , spend hours on working out why typo3 showing 1 segment in url.
site structure looks this:
and url got subpage 'munchen-maistrasse' is:
http://www.bernd-gruber.at/munchen-maistrasse/
i want be:
http://www.bernd-gruber.at/referenzen/munchen-maistrasse/
this server .htaccess file:
<filesmatch "\.(js|css)$"> <ifmodule mod_expires.c> expiresactive on expiresdefault "access plus 7 days" </ifmodule> fileetag mtime size </filesmatch> <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [l] rewriterule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [l] rewriterule ^typo3$ typo3/index_re.php [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l rewriterule .* index.php [l] </ifmodule> addtype video/x-m4v .m4v addtype video/ogg .ogv addtype video/webm .webm addtype video/x-m4v .m4v addtype application/ogg .ogg
i dont use config.baseurl in typoscript use:
config.absrefprefix = / config.prefixlocalanchors =
on root page. have runned out of solutions.
you need own configuration reach this.
1) in extension manager
-> realurl
-> configuration
have disable automatic configuration , define there path own realurl configuration file.
2) should make sure (page).config.tx_realurl_enable = 1
set.
3) after making right realurl configuration website have truncate realurl caching tables or remove id path mappings
.
here example of standard realurl configuration template:
<?php $realurl_template = array( 'init' => array( 'appendmissingslash' => 'ifnotfile,redirect', 'enablechashcache' => 1, 'enableurldecodecache' => 1, 'enableurlencodecache' => 1, 'emptyurlreturnvalue' => '/' ), 'prevars' => array( array( 'getvar' => 'no_cache', 'valuemap' => array( 'nc' => 1, ), 'nomatch' => 'bypass', ), ), 'filename' => array( 'index' => 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, ) ); # configurate domain names $typo3_conf_vars['extconf']['realurl'] = array( '_default' => $realurl_template, 'domain.com' => $realurl_template, 'www.domain.com' => $realurl_template, ); $typo3_conf_vars['extconf']['realurl']['domain.com']['pagepath']['rootpage_id'] = 1; $typo3_conf_vars['extconf']['realurl']['www.domain.com']['pagepath']['rootpage_id'] = 1; # unset template unset($realurl_template); ?>
Comments
Post a Comment