Nginx rewrite rules single url not working and confusing -


after reading lot of stuff i'm confused nginx rewrite rules.

my url looks actual that:

http://example.com/video.php?id=thevideoid&video=.mp4

but want make accessible through

http://example.com/video/thevideoid/video.mp4

my rewrite rule is

rewrite "(video).php?id=([a-u0-9a-z]+)&(video)=([.a-z0-9]{3,5})$" $1/$2/$3/$4? last;

but isn't working.

i'm confused syntax. part behind "rewrite" regex searched , last part whats replaced with, or other way around?

do have advices, suggestions, or other information me? appriciate :)


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -