nginx rewrite rules for two controllers

have two front controllers:

  • www.example.com/client.php/products
  • www.example.com/admin.php/products

and i want to rewrite them in this:

  • www.example.com/v1/client/products
  • www.example.com/v1/admin/products

how can i make this in nginx?



37.2k

Hi

I think not necessarily used nginx, Phalcon router can do this