Re: Convert Apache rewrite to NGinx

2013-03-06 Thread GASPARD Kévin
Hi, On Sun, Mar 03, 2013 at 07:38:39PM +0100, GASPARD kévin wrote: Hi there, >Probably a single extra try_files line will work for you. This is my new config file : location ~ \.php$ { try_files $uri $uri/ /index.php?q=$uri&$args; } You will probably

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Le Sun, 03 Mar 2013 19:59:17 +0100, Steve Holdoway a écrit: Why not just use the wp config examples in the docs? Both Wordpress and nginx offer them. Well, I forget to check that... Sorry. Anyway, I've found this: Steve On 4/03/2013, at 7:38 AM, GASPARD kévin wrote: Thanks for yo

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread Francis Daly
On Sun, Mar 03, 2013 at 07:38:39PM +0100, GASPARD kévin wrote: Hi there, > >Probably a single extra try_files line will work for you. > This is my new config file : > location ~ \.php$ { > try_files $uri $uri/ /index.php?q=$uri&$args; > } You will probably find

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread Steve Holdoway
Why not just use the wp config examples in the docs? Both Wordpress and nginx offer them. Steve On 4/03/2013, at 7:38 AM, GASPARD kévin wrote: > Thanks for your reply. > >> On Sun, Mar 03, 2013 at 01:52:48PM +0100, GASPARD kévin wrote: >> >> Hi there, >> >>> Using nginx 1.2.1 on Debian Whe

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Thanks for your reply. On Sun, Mar 03, 2013 at 01:52:48PM +0100, GASPARD kévin wrote: Hi there, Using nginx 1.2.1 on Debian Wheezy 64 bits. My wordpress need rewrite, it gave me this: # nginx configuration location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php break

Re: Convert Apache rewrite to NGinx

2013-03-03 Thread Francis Daly
On Sun, Mar 03, 2013 at 01:52:48PM +0100, GASPARD kévin wrote: Hi there, > Using nginx 1.2.1 on Debian Wheezy 64 bits. > > My wordpress need rewrite, it gave me this: > # nginx configuration > > location / { > if (!-e $request_filename){ > rewrite ^(.*)$ /index.php break; > } > }

Convert Apache rewrite to NGinx

2013-03-03 Thread GASPARD kévin
Hi, Using nginx 1.2.1 on Debian Wheezy 64 bits. My wordpress need rewrite, it gave me this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] I've tried to convert it with this