Not sure whether this would help, but WP usually is able to handle &quot;rewriting&quot; by itself.<div><br></div><div>I only need this config to get WP to work:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">location /</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">{</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">                </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">if (!-e $request_filename) {</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">                        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">rewrite ^.*$ /index.php last;</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">                </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">}</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">}</font></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099"><br></font></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">location ~ \.php$</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">{</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">                </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">fastcgi_pass (your php socket/port here);</font></font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">        </font></font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><font class="Apple-style-span" color="#000099">}</font></font></div>

<div><br></div><div>And WP has to be configured correctly in Settings &gt; Permalinks (like what Hone Watson said).</div><div><br></div><div>Ray.</div><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 8:09 AM, Jaime Magiera <span dir="ltr">&lt;<a href="mailto:jaime@sensoryresearch.net">jaime@sensoryresearch.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
This is a really basic question. I&#39;m unfamiliar with nginx (didn&#39;t even know it existed until a couple days ago) and not a master at URL rewrites. I have been tasked with hooking up Wordpress to nginx. The basic setup was easy enough. However, I&#39;m running into some problems with the rewrites. I&#39;ve been asked to rewrite from the static permalink format...<br>


<br>
&quot;/blog/$postname$-$post_id$&quot;   (e.g. /blog/my_blog_post_title-49) =&gt; to the standard &quot;/blog/?p=N&quot;<br>
<br>
I&#39;ve tried a bunch of variations, but I keep getting it wrong because the non-post content (css, images, etc.) are returning 404s. Does anyone have an example of how to do a nginx rewrite that does the above?<br>
<br>
thanks for any suggestions,<br>
<br>
Jaime Magiera<br>
<br>
Sensory Research, Inc.<br>
<a href="http://www.sensoryresearch.net" target="_blank">http://www.sensoryresearch.net</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>