Hi,<div><br></div><div>I have a setup where there are 2 installations of wordpress .One under / and one under /wordpress . The configs are as below</div><div><br></div><div><br></div><div>##############################</div>
<div>location / {</div><div><br></div><div>try_files $uri $uri/ /index.php?q=$uri&$args;</div><div><br></div><div>}</div><div><br></div><div>location /wordpress {</div><div><br></div><div>try_files $uri $uri/ /wordpress/index.php?q=$uri&$args;</div>
<div><br></div><div>}</div><div><br></div><div><div>location ~ \.php$ {</div><div>               try_files $uri =404;</div><div>               fastcgi_pass unix:/opt/pifpm/fpmsockets/picdn.sock;</div><div>               fastcgi_index index.php;</div>
<div>               include fastcgi_params;</div><div>        }</div></div><div><br></div><div><br></div><div>######################</div><div><br></div><div>The problem is that URL's like <a href="http://picdn.com/2013/01/hello-world/">http://picdn.com/2013/01/hello-world/</a> work ; but not <a href="http://picdn.com/wordpress/2013/01/04/hello-world/">http://picdn.com/wordpress/2013/01/04/hello-world/</a></div>
<div><br></div><div>The second URL simply redirects to <a href="http://picdn.com/2013/01/hello-world/">http://picdn.com/2013/01/hello-world/</a></div><div><br></div><div>Here is what the nginx log show</div><div>============================================</div>
<div><div>122.164.61.17 - - [04/Jan/2013:08:14:22 -0500] "GET /wordpress/2013/01/04/hello-world/ HTTP/1.1" 301 5 "<a href="http://picdn.com/wordpress/">http://picdn.com/wordpress/</a>" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11"</div>
<div>122.164.61.17 - - [04/Jan/2013:08:14:22 -0500] "GET /2013/01/hello-world/ HTTP/1.1" 200 3764 "<a href="http://picdn.com/wordpress/">http://picdn.com/wordpress/</a>" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11"</div>
</div><div>===========================================</div><div><br></div><div><br></div><div>Any idea why this might be happening?</div><div><br clear="all"><div><br></div><div>Thanks in advance,</div>-- <br>Anoop P Alias (PGP Key ID : 0x014F9953)<br>
GNU system administrator<br><a href="http://UniversalAdm.in" target="_blank">http://UniversalAdm.in</a>
</div>