Hey Jim,<br><br>Thanks for the link and for the advice. It worked great.<br><br>Thanks again<br><br><div class="gmail_quote">On Sun, Jan 4, 2009 at 3:28 PM, Jim Ohlstein <span dir="ltr">&lt;<a href="mailto:jim.ohlstein@gmail.com">jim.ohlstein@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">See <a href="http://wiki.codemongers.com/NginxHttpRewriteModule" target="_blank">http://wiki.codemongers.com/NginxHttpRewriteModule</a>.
</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Assuming your doc root is /var/www/ws, try</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">location /wiki/ {</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">if (!-e $request_filename) {</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">rewrite ^/(.*)$ /index.php?title=$1
last;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">}</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">rewrite ^/(images|skins)\/(.*)$
<a href="http://images.testsite.com/$1/$2" target="_blank">http://images.testsite.com/$1/$2</a> &nbsp;last;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">}</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You may need to add a forward slash in front of http in the
second line.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Good luck,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Jim</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:owner-nginx@sysoev.ru" target="_blank">owner-nginx@sysoev.ru</a> [mailto:<a href="mailto:owner-nginx@sysoev.ru" target="_blank">owner-nginx@sysoev.ru</a>] <b>On Behalf Of </b>Andrew
Thornton<br>
<b>Sent:</b> Sunday, January 04, 2009 3:01 PM<br>
<b>To:</b> <a href="mailto:nginx@sysoev.ru" target="_blank">nginx@sysoev.ru</a><br>
<b>Subject:</b> converting apache rewrites to nginx</span></p>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<p style="margin-bottom: 12pt;">Hello,<br>
<br>
I am currently trying to get a deployment ready in an attempt to migrate my
wiki from apache to nginx and php-fpm. Things have gone pretty smoothly so far,
but I am having a real problem with rewrite rules. Here is what is currently in
my apache config for a rewrite:<br>
<br>
&lt;Directory &quot;/var/www/ws/wiki&quot;&gt;<br>
RewriteEngine On<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>
RewriteRule ^(.*)$ /index.php?title=$1 [PT,L,QSA]<br>
RewriteRule ^(images|skins)\/(.*)$ <a href="http://images.testsite.com/$1/$2" target="_blank">http://images.testsite.com/$1/$2</a> [L]<br>
&lt;/Directory&gt;<br>
<br>
I have tried adding this a couple of different ways into the nginx config file
but it isn&#39;t working. Can someone give me a hand with this? Also, where can I
find docs on the rewrite functionality within nginx?<br>
<br>
I appreciate any and all help,<br>
<br>
Andrew</p>

</div></div></div>

</div>


</blockquote></div><br>