21 messages in ru.sysoev.nginxRe: Wordpress (single blog installati...
FromSent OnAttachments
Abdul-Rahman AdvanyDec 13, 2007 12:05 am 
Igor SysoevDec 13, 2007 12:56 am 
Abdul-Rahman AdvanyDec 13, 2007 6:04 am 
Igor SysoevDec 13, 2007 6:19 am 
Igor SysoevDec 13, 2007 6:20 am 
Abdul-Rahman AdvanyDec 13, 2007 6:48 am 
Abdul-Rahman AdvanyDec 15, 2007 10:36 am 
Igor SysoevDec 15, 2007 10:45 am 
Igor SysoevDec 15, 2007 11:11 am 
Abdul-Rahman AdvanyDec 15, 2007 11:57 am 
Igor SysoevDec 15, 2007 12:10 pm 
Abdul-Rahman AdvanyDec 15, 2007 2:25 pm 
Igor SysoevDec 15, 2007 10:26 pm 
Abdul-Rahman AdvanyDec 16, 2007 6:34 am 
Igor SysoevDec 16, 2007 6:46 am 
Abdul-Rahman AdvanyDec 16, 2007 8:27 am 
HonDev DeveloperDec 16, 2007 6:14 pm 
Abdul-Rahman AdvanyDec 16, 2007 6:45 pm 
Lipton TeaDec 27, 2007 11:28 am 
HonDev DeveloperDec 30, 2007 11:06 pm 
Alexis Torres GarnicaDec 31, 2007 11:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Wordpress (single blog installation) and nginxActions...
From:Lipton Tea (list@public.gmane.org)
Date:Dec 27, 2007 11:28:11 am
List:ru.sysoev.nginx

Abdul-Rahman Advany wrote:

Doesn't work for me, even if I try www.blog.com/index.php?q=/bla/bla

HonDev's regex rewrite doesn't work for me. I found a few other sites that list the same or slightly modified rewrite rule. After 10 hours trying to figure out wtf the problem was (I just installed and started using nginx today) I realized it had to be the rewrite rule so I examined it more closely. Below is the rewrite rule that works for me with

Wordpress 2.3.1 nginx version: nginx/0.5.34

Make sure you clear your cache after changing the rewrite rule.

if (!-e $request_filename) { rewrite ^(.*)$ $1/index.php last;

If anyone wants to see my nginx.conf I can post it here. Also, if the rewrite rule works for you please reply and let me know. Thanks!