Result: <a href="http://www.domain.tld/index.php?page=/test">http://www.domain.tld/index.php?page=/test</a><br>Desire: <a href="http://www.domein.tld/index.php?page=test">http://www.domein.tld/index.php?page=test</a><br><br>
<div class="gmail_quote">On Wed, Mar 26, 2008 at 2:07 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<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="Ih2E3d">On Wed, Mar 26, 2008 at 01:15:45PM +0200, Yordan Georgiev wrote:<br>
<br>
&gt; 1. How should I proceed &quot;RewriteRule ^(.*)\/$ index.php?page=$1&quot;, because<br>
&gt; when I replace this rule with<br>
&gt; if ($host ~* &quot;www.domain.tld&quot; ) {<br>
&gt; rewrite ^/([^/]+)/ /index.php?page=$1;<br>
&gt; break;<br>
&gt; }<br>
&gt; But my directory in the root folder does not work. How should I set this<br>
&gt; rule correctly<br>
<br>
</div> &nbsp; &nbsp; &nbsp;server {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server_name &nbsp;www.domain.tld;<br>
<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite &nbsp;^(.*)/$ /index.php?page=$1;<br>
<br>
</div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br>
 &nbsp; &nbsp; &nbsp;}<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Please excuse my bad english...<br><br>С уважение,<br>Й. Георгиев.<br><br>WEB: <a href="http://gigavolt-bg.net/">http://gigavolt-bg.net/</a><br>Blog: <a href="http://live.gigavolt-bg.net/">http://live.gigavolt-bg.net/</a>