で働いていない私はcodeiginiter index.phpをせずに、ローカルサーバーで働いていた Codeiginter製品は、index.phpのなしのLocalServerにうまく働いたが、サーバー
(ローカルホスト/サンプル)
で一つのプロジェクトを作成している。しかし、私は上方制御する場合私はindex.phpの手段を与える場合は、デフォルトのコントローラのみが働いていたオンラインサーバー(cPanelのにlinux)、他の次のページのURLが働いていません...( https://sample/nextpage)にエド私は、インデックスを削除したい(https://sample/index.php/nextpage)
を働きました.php、助けてください..
私のconfig.php
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'REQUEST_URI';
私route.php事前にファイル
$route['default_controller'] = "pages/home";
$route['pages/profile'] = "pages/profile";
$route['creators'] = "pages/userList";
$route[$username] = "pages/userList/userview/$1";
$route['translate_uri_dashes'] = FALSE;
$route['404_override'] = '';
私の.htaccessファイル
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
Options All -Indexes
おかげで、
Shruthi。変更.htaccessファイル
RewriteEngine On
RewriteBase /name of project folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
ありがとうございました!...来る日曜日私のプロジェクトの開始日..あなたは私を救っただけです。 – shruthi
あなたは大歓迎です。@shruthi –