<div dir="ltr">Thanks for the suggestions. I was not able to get $arg_title to work. Here is the relevant section of my nginx config:<div><div>        server_name <a href="http://mysite.com">mysite.com</a>;</div><div><br></div>

<div>        try_files $uri $uri/ index.php;</div><div><br></div><div>        location / {</div><div>                 rewrite ^/index\.php?title=(.*)$ <a href="http://mysite.com/$arg_title">http://mysite.com/$arg_title</a> redirect;</div>

<div>        }</div><div><br></div><div>        location ~ \.php$ {</div><div>                fastcgi_split_path_info ^(.+\.php)(/.+)$;</div><div><br></div><div>                fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div>

<div>                fastcgi_index index.php;</div><div>                include fastcgi_params;</div><div>        }</div></div><div><br></div><div>I also tried the rewrite rule inside of the "location ~ \.php$" block, but it didn't work there either. Visiting <a href="http://mysite.com/index.php?title=my_test_page">mysite.com/index.php?title=my_test_page</a> just loads that URL, it does not redirect to <a href="http://mysite.com/my_test_page">mysite.com/my_test_page</a>. Moreover, visiting <a href="http://mysite.com/my_test_page">mysite.com/my_test_page</a> results in a 404. What else should I try to make this rewrite rule work?</div>

<div><br></div><div>Thanks,</div><div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 3:57 AM, edogawaconan <span dir="ltr"><<a href="mailto:me@myconan.net" target="_blank">me@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 Mon, Sep 9, 2013 at 3:58 PM, mex <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br>


>> rewrite ^/index\.php?title=(.*)$ <a href="http://www.mysite.com/$1" target="_blank">http://www.mysite.com/$1</a> redirect;<br>
><br>
> this doesnt work? what is $1 then in the redirected request?<br>
><br>
<br>
</div>of course this won't work. Query string isn't part of rewrite matching string.<br>
<br>
Use $arg_title instead.<br>
<br>
<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>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
O< ascii ribbon campaign - stop html mail - <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>