anchor()生成链接,并附加indexPage,例如http://example.com/index.php/news/local/123。没有indexPage会更漂亮(在SEO方面)吗?例如http://example.com/news/local/123像base_url()一样吗?这样做的不利之处是什么?
anchor()
indexPage
http://example.com/index.php/news/local/123
http://example.com/news/local/123
base_url()
是否有配置选项?
在app \ Config \ App.php中设置
public $indexPage = '';
您的问题已解决。