我在没有任何数据库连接的情况下在 godaddy 服务器上上传了一个基本的编码点火器网站。在配置文件中,基本URL设置为域名,index_page为空,uri_protocol设置为request_uri。我也有带有代码的 .htaccess 文件,但不确定在其中做什么。在这里我应该怎么做才能删除此错误?
我尝试使用基本网址和uri_protocol,并对.htaccess文件进行了更改,但也没有帮助。
我的.ht访问代码 -
Options +FollowSymLinks
RewriteEngine on
# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
让你的/folder/app/.htaccess
像这样:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /folder/app/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
那么在/folder/app/application/config/config.php
你需要有这个配置:
$config['base_url'] = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';