codeigniter ユーザーガイドを確認しましたが、問題を解決できませんでした。
ローカルホストに Web ページを作成しました。
行ったらhttp://localhost/webpage/
大丈夫です。デフォルトのコントローラーに移動します。
私のデフォルトのコントローラーはで、 という名前のHomepage
メソッドがあります。index
guarantee
about
routes.php に移動すると、これを追加しました。
$route['guarantee'] = "homepage/guarantee";
$route['about_us'] = "homepage/about";
次にアクセスしようとするとhttp://localhost/webpage/guarantee
、http://localhost/webpage/about_us
エラー 404 が表示されます。
でもこうやってみる$route['default_controller'] = "homepage/guarantee";
と保証ページが表示されます。
誰でもこの問題で私を助けることができますか? ありがとう。