私はこの質問が既に尋ねられていることを知っていますが、私はこれらすべてを試みましたが、まだURLからindex.phpを削除できませんでした。私の「/私も下のリンクが、運を見てUBUNTUのcodeigniterからindex.phpを削除するには
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
:ここに は私の詳細は
Ubuntu 12.10
PHP : 5.4.6
Mod_rewrite in on
CI verson: 2.1
のように見える.htacessです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']'はどのように設定されていますか? –
最後に、あなたはどんなエラーを受けますか?私は "オブジェクトが見つかりません"と思う? –