nam_co
329
2
Forge

htaccess to nginx

Posted 1 year ago by nam_co

Hi, hope somebody can help me, in transforming my apache htaccess rules to nginx config

  1. removing the .php from the url's, so url: "/contac"t displays the file contact.php

  2. make this paths use their respective php file "/products" shows the file products-all.php "/products/some-category-name" shows the file products-cat.php "/products/some-category-name/product-name?id=89" shows the file products-detail.php

I tried searching everywhere, but couldn't fine the correct answer, appreciate any help

Thanks

Please sign in or create an account to participate in this conversation.