TYPO3 6.1.7新闻详细信息带有参数的URL被抛出到404页 [英] TYPO3 6.1.7 news details urls with parameters get thrown to 404 page

查看:118
本文介绍了TYPO3 6.1.7新闻详细信息带有参数的URL被抛出到404页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TYPO3 6.1.7安装上,我遇到以下问题:在新闻详细信息页面上,当尝试向URL中添加一些参数时,我被抛出到404 page.

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,我尝试在cHash之后添加任何参数(例如some_param = 123),进入带有404重定向代码的404页面.

[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.

我们需要此功能来访问带有某些Google Analytics(分析)参数(例如?utm_source=XXX&utm_medium=YYY&utm_content=news&utm_campaign=ZZZ

We would need this functionality for accessing the news details page with some google analytics params, such as ?utm_source=XXX&utm_medium=YYY&utm_content=news&utm_campaign=ZZZ

当我尝试向基于新tx_news新闻系统的新闻详细信息页面中添加一些参数时,也会发生同样的事情:

The same thing happens when I try to add some params to a news details page that is based on the new tx_news news system :

[my_site] typo3_6.1.5/examples/news/article/typo3-celebrates-20th-anniversary/?utm_source = XXX& utm_medium = YYY& utm_content = news& utm_campaign = ZZZ也转到404页.

[my_site]typo3_6.1.5/examples/news/article/typo3-celebrates-20th-anniversary/?utm_source=XXX&utm_medium=YYY&utm_content=news&utm_campaign=ZZZ also goes to the 404 page.

无需在url中添加这些参数,新闻就会很好地显示,不会发生重定向.

Without adding those params in the url, the news are displayed fine, no redirect happens.

我尝试使用自动realurl配置以及tt_news扩展示例中的配置,结果相同:始终为404页.

I have tried using the automatic realurl configuration, as well as the one from the examples from the tt_news extension, with equal results: always the 404 page.

我还在带有TYPO3 6.1.7, with php 5.3 or php 5.4的不同服务器上尝试过.

I have also tried it on different servers with TYPO3 6.1.7, with php 5.3 or php 5.4 on them.

这些可能是症状.有人对治疗有任何想法吗? TYPO3 6,realurl和新闻系统(tt_news& tx_news)之间是否存在兼容性问题?

These would be the symptoms. Anybody any ideas about a cure? Could there be a compatibility issue between TYPO3 6, realurl and the news systems (tt_news & tx_news)?

推荐答案

您应该从chash计算中排除参数.可以在安装工具中完成.在所有配置"部分中搜索"cHashExcludedParameters".在构建页面样式时,将忽略此处列出的每个变量.默认情况下,您应该在此处列出您的语言参数,例如:L

You should exclude your parameter from the chash calculation. Its can be done in the install tool. In the "all configuration" section search for "cHashExcludedParameters". Every variable listed here will be ignored when building the chash for the page. By default you should have your language parameter listed here for example: L

现在您要做的就是将参数添加到列表中.假设您的参数名为"utm_campaign",则应如下所示:L,utm_campaign

Now all you need to do is to add your parameter to the list. Given that your parameter is namend "utm_campaign", it should look like this: L, utm_campaign

您可以添加其他参数作为逗号分隔列表:L,utm_campaign,foo,bar

You can add additional parameters as comma seperated list: L, utm_campaign, foo, bar

确保更改后清除缓存.

这篇关于TYPO3 6.1.7新闻详细信息带有参数的URL被抛出到404页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆