-3
これは現在のURLですhttp://www.example.com/agent/index/$id
,これを変更したいhttp://www.example.com/demo_name(by agent name)
答えを提案してください。codeignitorのコントローラとメソッドのURLを削除するには
これは現在のURLですhttp://www.example.com/agent/index/$id
,これを変更したいhttp://www.example.com/demo_name(by agent name)
答えを提案してください。codeignitorのコントローラとメソッドのURLを削除するには
わかっているかわかりません。しかし、あなたがURLの "インデックス"を省略したい場合。 .htaccessファイルを使用する必要があります。これは一例です:
RewriteEngine on
RewriteCond $1 !^(index.php|assets|robots.txt)
RewriteRule ^(.*)$ /directory/index.php/$1 [L]
参照:http://www.codeigniter.com/user_guide/general/routing.html –