<font color="#333399"><font>Hello,<br><br>I would like to set up a rule redirecting the root location to another address, but to serve files inside this location directly.<br>I tried the following:<br>location = / {<br> rewrite .* <a href="http://inter.net">http://inter.net</a> permanent;<br>

}<br><br><a href="http://intra.net/">http://intra.net/</a> is redirected as wanted<br><a href="http://intra.net/codes.txt">http://intra.net/codes.txt</a> is also redirected... but that is not intended<br><br>How to avoid that? SHould I try something with an if or a try_files directive on the $uri variable?</font></font><br clear="all">

<font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>