简体   繁体   English

使用Codeigniter单击链接时,在实时服务器上找不到404页面错误

[英]404 page not found error on live server when click on a link using codeigniter

I am using <a href="<?php echo base_url('View/page'); ?>">LINK</a> Method to load files and 我正在使用<a href="<?php echo base_url('View/page'); ?>">LINK</a>方法加载文件并

<a href="<?php echo site_url('View/page'); ?>">LINK</a> method to load other pages when click on a link 404 page not found error occured on live server <a href="<?php echo site_url('View/page'); ?>">LINK</a>方法,用于在未找到链接404页面时加载其他页面,实时服务器上发生错误

My .htaccess file looks like 我的.htaccess文件看起来像

DirectoryIndex index.php
RewriteEngine on

RewriteCond $1 !^(index\.php|

(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]

My config.php settings for the site url are: 我对网站网址的config.php设置是:

$config['url_suffix'] = '';
$config['index_page'] = '';

Anyone help please in this matter... 在这件事上有人帮助...

You have configure the file routes.php. 您已经配置了文件route.php。

More info: 更多信息:

https://www.codeigniter.com/userguide3/general/routing.html https://www.codeigniter.com/userguide3/general/routing.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM