Nginx Rewrite Directory-only -


i've following rewrite server {}:

rewrite ^/([^/]*)$ /location.php?$1&$2&$3&$4&$5&$6&$7&$8&$9&$10; 

my location.php inside register folder. how run rule when visitor in register directory?

can't add /register ? like

rewrite ^/register/([^/]*)$ /register/location.php?$1&$2&$3&$4&$5&$6&$7&$8&$9&$10 break; 

and how come location.php inside register folder yet wrote /location.php not /register/location.php


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -