Sorry for adding yet another rewrite thread, but I did a few searching and couldn'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> if (!-f $request_filename) {<br> rewrite ^(.*)$ /index.php$1? break;<br>
}<br>}<br><br>This works somewhat, but nginx then applies the index order giving me this:<br><br>[error] 29870#0: *45 "/home/entrom/public_html/index.php/news/index.php" 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'm not really very big on doing.<br><br>Thanks in advance,<br>Martin Fjordvald<br>