Contao 4.4.x 从 url 中删除前缀 .html
Contao 4.4.x Remove Prefix .html from url
如何从 Contao 中删除 (.html ) 前缀 url
示例:当前 Url => http://example.com/startseite.html required url : http://example.com/startseite
您需要将以下内容添加到您的 config/config.yml
(Contao 4.9 之前的app/config/config.yml
)。
contao:
url_suffix: ''
之后,您需要清除和预热应用程序缓存,就像任何配置更改一样。
如何从 Contao 中删除 (.html ) 前缀 url
示例:当前 Url => http://example.com/startseite.html required url : http://example.com/startseite
您需要将以下内容添加到您的 config/config.yml
(Contao 4.9 之前的app/config/config.yml
)。
contao:
url_suffix: ''
之后,您需要清除和预热应用程序缓存,就像任何配置更改一样。