[英]404 page not found error on live server when click on a link using codeigniter
我正在使用<a href="<?php echo base_url('View/page'); ?>">LINK</a>
方法加载文件并
<a href="<?php echo site_url('View/page'); ?>">LINK</a>
方法,用于在未找到链接404页面时加载其他页面,实时服务器上发生错误
我的.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]
我对网站网址的config.php
设置是:
$config['url_suffix'] = '';
$config['index_page'] = '';
在这件事上有人帮助...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.