We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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?



58.4k

Hi

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