<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hello,</span><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

I have read through the nginx rewrite documentation and looked at various examples, but can't figure out how to create a rewrite rule for the following (if it is possible). I'd like to rewrite the URL of a php file with a $_GET argument and replace it with just the value of the $_GET argument. For example, I'd like to replace /index.php?title=my_example_title with /my_example_title or /article/my_example_title. I've tried several regular expressions to match index.php, as well as the $args and $arg_title nginx variables, but cannot get this working. For example:</div>

<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">rewrite ^/index\.php?title=(.*)$ <a href="http://www.mysite.com/$1" target="_blank">http://www.mysite.com/$1</a> redirect;<br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

<br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Can anyone provide inside into how to correctly rewrite this type of URL?</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

<br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Thanks,</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

Andrew</div></div>