Thanks Igor,<br><br>But that does not work :(.<br><br>from what i could find out; i think the URL parsing is handled by the index.php file itself. so every request to a non existing content must pass to the index.php file without having any change in the URL. I guess that is why the apache pass through directive is there (PT). If we delete the PT the website stops functioning!<br>
<br><br>I found the following rules working correctly for lightppd<br><br>======================<br>           &quot;^/paOScore(.+)$&quot; =&gt; &quot;/?/paoscore/$1&quot;,<br>                &quot;^/paOS(.+)$&quot; =&gt; &quot;/?/paos$1&quot;,<br>
                &quot;^/SOap(.+)$&quot; =&gt; &quot;/?/paos$1&quot;,<br>======================<br><br>On similar lines the following nginx rules were created<br>======================<br>        rewrite ^/paOScore(.*)$         /?/paoscore/$1  last;<br>
<br>        rewrite ^/paOS(.*)$             /?/paos$1       last;<br>        rewrite ^/SOap(.*)$             /?/paos$1       last;<br>========================<br><br>Which works but gets the page in a redirect loop if an https page is <a href="http://requested.it">requested.it</a> works perfect for the http page<br>
<br>The URL&#39;s are all in the format <br><br><a href="http://www.domain.com/paos-14-71-1h-49-en.html">http://www.domain.com/paos-14-71-1h-49-en.html</a><br><br><a href="http://www.domain.com/paoscore/10-49-en.html">http://www.domain.com/paoscore/10-49-en.html</a><br>
<br><br>The content is dynamically pulled from a database according to the URL input ;as far as i can see ;this is how it works<br><br>there is code snippets in the index.php which says<br>if ( $_SERVER[ &#39;REQUEST_URI&#39; ]...<br>
....<br><br>etc<br><br>any help is much appreciated<br><br>Thanks ,<br>Anoop<br><br><br><div class="gmail_quote">2009/5/30 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sat, May 30, 2009 at 07:21:06AM +0530, Anoop Alias wrote:<br>
<br>
&gt; Thank you Igor,<br>
&gt;<br>
&gt; Sorry , that was the wrong apache rewrite rules<br>
&gt;<br>
&gt; The correct one is<br>
&gt; ==================<br>
&gt; RewriteRule ^(/paos|/soap)(.+) / [NC,L,PT]<br>
&gt; ==================<br>
&gt;<br>
&gt; This is the one that needs to be ported to nginx fomat<br>
<br>
</div>location /paos/ {<br>
    proxy_pass  <a href="http://backend/" target="_blank">http://backend/</a>;<br>
}<br>
<br>
location /soap/ {<br>
    proxy_pass  <a href="http://backend/" target="_blank">http://backend/</a>;<br>
<div><div></div><div class="h5">}<br>
<br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anoop P Alias (PGP Key ID : 0x014F9953)<br>GNU system administrator<br><a href="http://GnuSys.net">http://GnuSys.net</a><br>