:
> I think you need to do some regexp on the args
>
> if ( $args ~ title=([^&]+) {
> rewrite ^(.*)title=([^&]+).*$ /article/$2? last;
> }
>
> Note... totally untested.
>
> Steve
>
>
> On Sun, 2013-09-08 at 23:01 -0500, Andrew Martin wrote:
> >
/index.php?title=my_test_page
Thanks again for all of your help,
Andrew
On Wed, Sep 11, 2013 at 9:31 AM, Francis Daly wrote:
> On Wed, Sep 11, 2013 at 08:32:09AM -0500, Andrew Martin wrote:
>
> Hi there,
>
> > Using the similar statement "try_files $uri $uri/ /index.php;"
d like the client's browser to instead show this URL:
http://mysite.com/my_test_page
Does this help clarify what I am looking for?
Thanks,
Andrew
On Wed, Sep 11, 2013 at 7:43 AM, Francis Daly wrote:
> On Tue, Sep 10, 2013 at 09:07:46PM -0500, Andrew Martin wrote:
>
> Hi there,
&g
Francis,
On Tue, Sep 10, 2013 at 11:46 AM, Francis Daly wrote:
> On Mon, Sep 09, 2013 at 08:23:36AM -0500, Andrew Martin wrote:
>
> Hi there,
>
> > If I use this line:
> > rewrite ^/index\.php(.*)$ http://mysite.com/$arg_title? redirect;
> >
> > /index
wishmaster wrote:
>
>
> --- Original message ---
> From: "Andrew Martin"
> Date: 9 September 2013, 15:53:01
>
>
> > Thanks for the suggestions. I was not able to get $arg_title to work.
> Here is the relevant section of my nginx config:server_name
> m
Thanks for the suggestions. I was not able to get $arg_title to work. Here
is the relevant section of my nginx config:
server_name mysite.com;
try_files $uri $uri/ index.php;
location / {
rewrite ^/index\.php?title=(.*)$
http://mysite.com/$arg_title redire
Hello,
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
argume