Sorry for adding yet another rewrite thread, but I did a few searching and couldn&#39;t find anything about replicating passthru behaviour.<br><br>The idea is to take something like this:<br><br><a href="http://domain.com/news/254/">domain.com/news/254/</a> and redirect it to <a href="http://domain.com/index.php/news/254/">domain.com/index.php/news/254/</a><br>
<br>In apache rewriting this is simple enough like this:<br><br>RewriteRule ^(.*)$ index.php/$1 [PT,L]<br><br>I tried this in nginx:<br><br>location / {<br>&nbsp;&nbsp;&nbsp; if (!-f $request_filename) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite&nbsp; ^(.*)$&nbsp; /index.php$1? break;<br>
&nbsp;&nbsp;&nbsp; }<br>}<br><br>This works somewhat, but nginx then applies the index order giving me this:<br><br>[error] 29870#0: *45 &quot;/home/entrom/public_html/index.php/news/index.php&quot; is not found (20: Not a directory)<br>
<br>Where as I want it to use the index.php in the root. I could use index.php?q= but that will require framework rewriting that I&#39;m not really very big on doing.<br><br>Thanks in advance,<br>Martin Fjordvald<br>