ユーザーが URL 内に index.php を次のように入力すると、404 ページを表示する必要があります。
http://localhost:8080/site_name/index.php/home
これをroutes.phpに追加します$route['index.php/(:any)'] = 'custom404';
役に立ちませんでした。ユーザー タイプhttp://localhost:8080/site_name/index.php/home
のホームページが 404 not found の代わりに表示される場合。
ユーザーが URL 内に index.php を入力したときに 404 ページを表示する方法はありますか?
私のhtaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /site_name/index.php/$1 [L]