codeigniter 服务器上没有找到请求的URL所对应的网页.

hmmo2u0o  于 2023-08-01  发布在  其他
关注(0)|答案(1)|浏览(108)

我有一个带有codeigniter的应用程序,当应用程序视图在“联系人”菜单中时,我想调用一个Home控制器,但出现了这样的错误


的数据

链接地址

<li><a href="<?= base_url('home');?>" class="active">Beranda</a></li>

字符串

.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

snvhrwxg

snvhrwxg1#

使用下面的代码在你的根目录下创建.htaccess文件

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

字符串

相关问题