Re: Rewrite URL to only show value of $_GET argument

2013-09-19 Thread Andrew Martin
: > 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: > >

Re: Re[2]: Rewrite URL to only show value of $_GET argument

2013-09-15 Thread Andrew Martin
/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;"

Re: Re[2]: Rewrite URL to only show value of $_GET argument

2013-09-11 Thread Andrew Martin
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

Re: Re[2]: Rewrite URL to only show value of $_GET argument

2013-09-10 Thread Andrew Martin
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

Re: Re[2]: Rewrite URL to only show value of $_GET argument

2013-09-09 Thread Andrew Martin
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

Re: Rewrite URL to only show value of $_GET argument

2013-09-09 Thread Andrew Martin
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

Rewrite URL to only show value of $_GET argument

2013-09-08 Thread Andrew Martin
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