realurl

TYPO3 breaks urls without WWW

末鹿安然 提交于 2020-02-25 05:58:04
问题 The problem is that when I want to access my website like www.example.com/my/subpage all works great but when I try to access my website like this (without WWW) example.com/my/subpage TYPO3 breaks it down and redirect it to www.example.com/index.php/subpage . The redirect from non WWW to WWW is correct but why does it destroy my url? Here is the .htaccess redirect: RewriteCond %{HTTP_HOST} !^www\.example\.com$ RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] For the "nice" urls I use

realUrl not writing preVar for default language

社会主义新天地 提交于 2020-01-23 11:41:14
问题 I am running realURL 1.12.6 on TYPO3 4.5.26 I am used to realURL creating paths that contain the preVar also for the default language, like www.example.com/de/seite/ and www.example.com/en/page/ In one case, this is just not happening - or I think, only sometimes. In most of the cases, I get www.example.com/seite/ and www.example.com/en/page/ Where can this be changed? PS: Here's the beginning of my realurlconf: $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array(

TYPO3 6.1.7 news details urls with parameters get thrown to 404 page

不问归期 提交于 2020-01-17 02:43:05
问题 I have the following problem on a TYPO3 6.1.7 installation: on the news details page, when trying to add some parameters to the url, i get thrown to the 404 page . So if i have a url of type : [my_site]/typo3_6.1.7/examples/tt-news/news-details/?tx_ttnews[tt_news]=3&cHash=9011f9244c0a445bc1409ee0ef137d54 and i try to add any parameter after cHash (for example some_param=123), it goes to the 404 page with a 404 redirect code. We would need this functionality for accessing the news details page

TYPO3 9.5.3 News Archiv and Route Enhancers

ぐ巨炮叔叔 提交于 2020-01-15 09:46:09
问题 I included the RouteEnhancers for the News Plugin and there working as exspected for News List and News Detail Pages. Now i try to implement the DateMenu Archiv and there i have some Problems. My config.yaml looks like that. routeEnhancers: PageTypeSuffix: type: ForceAppendingSlash NewsPlugin: type: Extbase extension: News plugin: Pi1 routes: - routePath: '/news/{page}' _controller: 'News::list' _arguments: page: '@widget_0/currentPage' - routePath: '/{news_title}' _controller: 'News::detail'

In a Typoscript HMENU, how to force the language for the URL

对着背影说爱祢 提交于 2020-01-11 12:52:31
问题 I have a multi-language, multi-site, multi-domain TYPO3 (4.5) Instance where RealURL keeps me busy. In some sub-sites, I just can't get it to create the right URLs for Languages 1 and 2. It will result in the pattern www.language-2-domain.com/language-1-pagetitle Instead of keeping on fiddling with realurl_conf, I would like to know if/how it is possible to tell a TMENU to force use a certain language - then I could solve it with a condition. Here's a completely normal TMENU: lib.content

In a Typoscript HMENU, how to force the language for the URL

假如想象 提交于 2020-01-11 12:52:10
问题 I have a multi-language, multi-site, multi-domain TYPO3 (4.5) Instance where RealURL keeps me busy. In some sub-sites, I just can't get it to create the right URLs for Languages 1 and 2. It will result in the pattern www.language-2-domain.com/language-1-pagetitle Instead of keeping on fiddling with realurl_conf, I would like to know if/how it is possible to tell a TMENU to force use a certain language - then I could solve it with a condition. Here's a completely normal TMENU: lib.content

TYPO3 7.6 - tx_news 4.2.1 - no detail name in realurl?

≯℡__Kan透↙ 提交于 2020-01-07 02:43:07
问题 The realurl config with tx_news works fine for me, but I have one problem. I dont need the detail-name in the address. www.domain.org/news-list/ news-detail /test-news-name-here/ and now i dont need the "news-detail". Here the PHP code realurl.php <?php $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment'; $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl

TYPO3 decode realurl in userfunc

眉间皱痕 提交于 2020-01-03 06:32:05
问题 I have made an userFunc to make nice urls in my own extension. How do I decode the urls so that TYPO3 will show the right product? I think that the uid of the product will be somewhere so that I can use it. Am I right? 回答1: If I remember correctly, you don't have to decode anything. RealURL sets the $_GET variables back to what they would be if RealURL wasn't used. So if your URL contains... &tx_origkentaurproducts_kentaurproductsfe[action]=show ...and RealURL transforms it for example to...

typo3 7, bootstrap_package, RealUrl and own extension

百般思念 提交于 2019-12-25 08:21:36
问题 I setup a typo3 with the bootstrap_package; created with the extension builder my own extension and installed realURL with auto conf and hoped it would work. It did not. I tried to write my own conf but it is ignored but somewhere the page settings are beeing made. The auto generated file already had a no_cache setting but it isn't beeing interpreted and my own settings are also not used but the page settings are. any ideas? my url currently looks like this: http://localhost/test/sub/ ?tx

Issue with realurl, redirect and caching in TYPO3

梦想与她 提交于 2019-12-25 07:58:34
问题 This error occures in TYPO3 7.6.10 with a piBase extension and realurl 2.0.15: In this extension, I'm checking for a GET parameter, e.g. a country. If this parameter is not provided, I redirect to the same page, with default country as parameter: if(!$this->piVars['country']) { $this->piVars['country'] = 'germany'; \TYPO3\CMS\Core\Utility\HttpUtility::redirect($this->pi_linkTP_keepPIvars_url(array(), true), \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_303); } That means, the visitor e.g.