나는이 질문을 이미 물어 보았다. 그러나 나는 모든 것을 시도했지만 여전히 URL에서 index.php를 제거 할 수 없었다. 여기UBUNTU에서 codeigniter에서 index.php를 제거하는 방법
Ubuntu 12.10
PHP : 5.4.6
Mod_rewrite in on
CI verson: 2.1
모양 .htacess 내 세부처럼 ..
RewriteEngine On
RewriteBase /projectname
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
나는 또한 아래 링크를하지만 행운 볼
Cannot remove index.php from url CI based site
How to remove "index.php" in codeigniter's path
내 "/ etc/apache2/sites-available/default "는 다음과 같습니다 :
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
감사합니다. application/config/config.php
변화에
아무것도 너의 로그? –
그리고'$ config [ 'uri_protocol']'설정은 무엇입니까? –
그리고 마지막으로 어떤 오류가 발생합니까? 나는 "개체를 찾을 수 없다"고 의심합니까? –