Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 codeigniter 试图实现这一点
test.html redirect to index.php/test/test
那么第一个测试是文件夹名称
&第二个测试是控制器
对于 test.html 你可以这样做你 .htaccess
RewriteEngine On RewriteBase / RewriteRule ^test.html$ index.php/test/test [L]
或者routes.php你也可以定义一条路线
routes.php
$route['test.html'] = 'index.php/test/test';