【问题标题】:How to get speaking urls in TYPO3 9.5.5 with html but not for rootpage如何在 TYPO3 9.5.5 中使用 html 获取语音 URL,但不能用于 rootpage
【发布时间】:2019-03-21 09:58:59
【问题描述】:

TYPO3 9.5.5 中的演讲网址的构建非常好。我试过这个:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: '.html'
    index: 'index'
    map:
     {}

它工作正常,但对于根页面有 example.org/index.html 或 example.org/en/index.html - 我想拥有以前的 example.org 或 example.org/en.html与真实网址? 有没有可能摆脱 index.html?

沃尔克

【问题讨论】:

  • 使用默认设置(如果您省略了您所做的所有配置)TYPO3 不再包含您的“.html”后缀的页面。要么你搞砸了你的配置,要么你必须提供更多关于你的站点/设置的信息。以及您尝试实现的目标
  • 感谢您的回复我在 docker 中构建了新版本并安装了介绍包,然后我通过“站点”添加了第二种语言,然后唯一的编辑是带有 routeEnhancers: PageTypeSuffix: 类型的 config.yaml: PageType default: '.html' index: 'index' map: {} 现在我在 menue mydomain/example.html 中得到这样的链接 - 好的!但是对于根页面,我得到mydomain/index.hml - 我只想拥有mydomain

标签: routes typo3 typo3-9.x


【解决方案1】:

通过 SEO(核心扩展),当我使用“/”作为根页面时,我得到了正确的规范标签。 但是,如果在菜单和根行中包含没有 .html 的首页 URL,那就太好了。

cu 沃尔克

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-29
    • 2012-11-29
    • 2022-08-02
    相关资源
    最近更新 更多