down vote favorite how set add " RewriteRule .* index.php " in nginx.conf for subfolder ? and dont redirect for root example: https://www.bidbarg.com/ (index.php redirect to none) https://www.bidbarg.com/bimeh/index.php/ (index.php needed) thank you Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273883,273883#msg-273883