Hi Nicolas,<br><br>I tried that, but it appears to put drupal into an infinite loop.<br><br>&quot;The page isn&#39;t redirecting properly. Firefox has decided that the server is redirecting the request for this address in a way that will never complete.&quot;
<br><br>My final code is...<br>&lt;?php<br>global $user;<br>if ($user-&gt;uid == 0) {<br>drupal_goto(&#39;user/login&#39;);<br>}<br>?&gt;<br>&lt;p&gt;Access Denied&lt;/p&gt;<br><br><br><div class="gmail_quote">On Dec 14, 2007 5:33 PM, Nicolas Tostin &lt;
<a href="mailto:nicolast@logis.com.mx">nicolast@logis.com.mx</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 bgcolor="#ffffff">
<div><font face="Arial" size="2">I would create a dedicated node to handle &quot;page 
403&quot; then I would put in there custom php like:</font></div>
<div><font face="Arial" size="2">&lt;?php</font></div>
<div><font face="Arial" size="2">global $user;</font></div>
<div><font face="Arial" size="2">if ($user-&gt;uid == 0) {</font></div>
<div><font face="Arial" size="2">&nbsp; drupal_goto(&#39;user/login&#39;);</font></div>
<div><font face="Arial" size="2">}</font></div>
<div><font face="Arial" size="2">else {</font></div>
<div><font face="Arial" size="2">&nbsp; echo &#39;Access denied&#39;;</font></div>
<div><font face="Arial" size="2">}</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">?&gt;</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I think this would help you ;-)</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div><div></div><div class="Wj3C7c">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="johnbarreiros2@gmail.com" href="mailto:johnbarreiros2@gmail.com" target="_blank">John 
  Barreiros</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="support@drupal.org" href="mailto:support@drupal.org" target="_blank">
support@drupal.org</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Friday, December 14, 2007 3:11 
  PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [support] access denied 
  page</div>
  <div><br></div>Hi all.<br><br>This is what I&#39;m trying to achieve.<br><br>- If 
  the user is not logged in and they try to access a private page, they are 
  taken to the login page.<br>- If the user is logged in and they try to access 
  a page they can&#39;t access, they are taken to an &quot;access denied&quot; page. 
  <br><br>The first seems easy enough. I just changed the &quot;Default 403 page&quot; to 
  user/login. <br><br>But, I can&#39;t figure out the second.<br><br>Any 
  ideas?<br><br>
  </div></div><p>
  </p><hr>

  <p></p>-- <br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> 
]</blockquote></div>
<br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>