Yes, my bad when I pasted the expression. My current rule is:<br><br>        if ($request_uri !~* &quot;^documents/([A-Z0-9-]{36})pages/([A-Z0-9-]{36})items/([A-Z0-9-]{36})&quot; ) {<br>                        rewrite ^ <a href="http://www.google.com/">http://www.google.com/</a> permanent;<br>

        }<br><br>But it never matches anyway. If the expression match, I should just continue, otherwise just redirect to (google) for instance.<br><br>Gregory<br><br><div class="gmail_quote">2011/2/7 Splitice <span dir="ltr">&lt;<a href="mailto:mat999@gmail.com">mat999@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div bgcolor="#FFFFFF"><div>Firstly you are missing slashes after each var/regex<br><br>Sent from my iPod</div>

</div></blockquote></div>