0

anchor()生成带有indexPage附加例如的链接http://example.com/index.php/news/local/123。没有 indexPage 不是更漂亮(SEO 方面)吗?例如http://example.com/news/local/123喜欢base_url()吗?这样做的缺点是什么?

有没有配置这个的选项?

4

1 回答 1

1

在 app\Config\App.php 中设置

public $indexPage = '';

你的问题就解决了。

于 2020-05-16T02:37:25.330 回答