1

私はこの主題に関する多くのトピックを読みましたが、誰も働いていませんでした.

まず、設定を共有します。

仮想ホスト ファイル:

<VirtualHost *:80>
        ServerName lacangolf.raphaelaupee.fr
        DocumentRoot "/var/www/raphael/lacangolf/public_html"
        <Directory /var/www/raphael/lacangolf/public_html>
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        #ErrorLog
        #LogLevel warn
        ServerSignature Off
</VirtualHost> 

.htaccess ファイル:

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L] 

設定ファイル:

$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO'; 

Auto をこれらの 4 つのソリューションに置き換えようとしましたが、うまくいきませんでした。'PATH_INFO' 'QUERY_STRING' 'REQUEST_URI' 'ORIG_PATH_INFO'</p>

私のアプリケーションスケルトンは次のとおりです。

CodeIgniter の index.php 書き換え問題

|-application
|-system
|-public_html
  |-assets
  |-index.php
  |-.htaccess

私の友人のグーグルでまだ解決策を探している私を助けてくれてありがとう。(下手な英語でごめんなさい)

4

0 に答える 0