如果 URL 中没有 index.php,我的 Web 应用程序将无法工作。它一直在我以前的笔记本电脑(操作系统:Ubuntu 10.10)中运行。在我的新笔记本电脑中,在 OS Fedora 16 中它不起作用。我做了所有检查,如 .htaccess、cofig.php 等。其他应用程序而不是像 PHPMyAdmin 这样的 CodeIgniter 框架,工作正常。以下是我的 .htaccess 代码。
# Options
Options -Multiviews
Options +FollowSymLinks
#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /barj
#Removes access to CodeIgniter system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php?/$1 [L]
在 config.php 中,我有以下 conf
$config['index_page'] = "";
$config['REQUEST_URI'] = "AUTO";
请给我任何解决问题的想法。