小编典典

如何在codeigniter的路径中删除“ index.php”

php

我如何消除"index.php"在代码点火器中位于中心某处的每个路径中的突出?我要清洁非index.php-fied URLs吗?


阅读 333

收藏
2020-05-26

共1个答案

小编典典

如果您使用的是Apache,请将.htaccess文件放在根Web目录中,其中包含以下内容:

RewriteEngine on
RewriteCond $1 !^(index\.php|[Javascript / CSS / Image root Folder name(s)]|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
2020-05-26