我想在我的typo3站点中使用RealUrl扩展。我想做的是:
更改通常的url
"http://mysite.it/pag/index.php?id=1"转到
"http://mysite.it/pag/1"(我想隐藏"index.php?id=")
使用RealUrl可以做到这一点吗?有人能帮我吗?(conf示例)谢谢
发布于 2018-07-03 21:45:38
这样你可能就不需要realurl了。
任何https://mydomain.tld/?{pageid}类型的url都会被TYPO3内核映射到index.php?id={pageid},所以你只需要重写一个小的htaccess就可以插入问号。
只是链接不是以这种简短的形式生成的。但这可以通过lastplace替换来完成(在PAGE对象上执行stdWrap.replacement ):
page = PAGE
page {
10 = ...
:
stdWrap.replacement {
1.search = index.php?id=
1.replace =
}
}您的请求提醒核心扩展simulate static,但它可能已过时,并且模式与您的请求不同。是https://mydomain.tld/{pagetitle}.{pageid}[.{pagetype}].html。对于默认的页面类型0,页面类型不需要呈现。
https://stackoverflow.com/questions/51154833
复制相似问题