添加斜杠时htaccess规则不起作用

My main domain points to /html folder which has nothing in it but a .htaccess file.

I have a CodeIgniter website in /html/manage folder.

This is htaccess file content

RewriteEngine on
RewriteBase /

RewriteRule ^pg/(.*)$ /manage/product_groups [L,QSA]

This does not work, it shows 404 error page of codeigniter.

(If I visit website.com/manage/product_groups directly from browser, it works fine)

If I do RewriteRule ^pg/(.*)$ /manage [L,QSA] then it works fine, actually this page has login page of CI.

My main goal is to redirect every request redirect from website.com/pg/ to
website.com/manage/product_groups

I didn't know if you had a special case or not.

Just referring to the routing doc examples.

$route['default_controller'] = 'home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

$route['pg'] = 'manage/product_groups';

or

$route['pg/(:any)'] = 'manage/product_groups';

Might have to experiment a bit.