Apache:

RewriteRule ^client/(.*)$ /client.php?id=$1               [L,QSA]

Nginx:

rewrite ^/client/(.*)$ /client.php?id=$1&$args last;
  • Notice uris in nginx must start with /
  • Notice &$args is needed to replicate Apache's QSA feature
Feedback

Powered by Vanilla PHP feedback form