<div class="gmail_quote">On Wed, Nov 28, 2012 at 2:25 PM, Edho Arief <span dir="ltr"><<a href="mailto:edho@myconan.net" target="_blank">edho@myconan.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Nov 28, 2012 at 7:11 PM, Cristian Rusu <<a href="mailto:crirus@gmail.com">crirus@gmail.com</a>> wrote:<br>
> Excellent, it worked<br>
><br>
> I have another urgent matter on a server live we just switched to<br>
><br>
> I need that links like this:<br>
> <a href="http://www.example.com/?v=JYH253CT" target="_blank">http://www.example.com/?v=JYH253CT</a><br>
><br>
> to be rewritten as <a href="http://www.example.com/v.php?dl=JYH253CT" target="_blank">http://www.example.com/v.php?dl=JYH253CT</a><br>
><br>
><br>
> Please help, server is down :(<br>
><br>
<br>
</div><a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#variables" target="_blank">http://nginx.org/en/docs/http/ngx_http_core_module.html#variables</a><br>
<br>
Maybe something like this.<br>
<br>
location = / {<br>
if ($arg_v) {<br>
rewrite ^ /v.php?dl=$arg_v;<br>
<div class="HOEnZb"><div class="h5"> }<br>
}<br></div></div></blockquote></div><br>I tried this from a htaccess to nginx converter<br><br>if ($query_string ~ "^v=(.*)$"){<br> rewrite ^/index\.php$ /v.php?dl=$1 break;<br>}<br><br>But the resulting url is /v.php?dl=%1&v=FER34S<br>
<br>beats me!!<br><br clear="all"><br>