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