<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>I want to redirect all calls to http://mydomain.com/index.php to http://mydomain.com to avoid duplicate pages.</P><P>I use this</P><P><BR></P><P>if ($request_uri ~* "^/index.php\??$") {<BR>    rewrite ^.*$ http://$host? permanent;<BR>}<BR></P><P><BR></P><P>but it doesn't seem to work properly. Although it redirects I cannot login or logout anymore in Joomla, it simply redirect to homepage without login or logout. What am i missing here ? How do i do this properly ? Of course if i remove that everything i fine, it works for example for home.html but not for index.php.</P><P><BR></P><P>Thank you.</P></td></tr></table><br>