Hi Nicolas,<br><br>I tried that, but it appears to put drupal into an infinite loop.<br><br>"The page isn't redirecting properly. Firefox has decided that the server is redirecting the request for this address in a way that will never complete."
<br><br>My final code is...<br><?php<br>global $user;<br>if ($user->uid == 0) {<br>drupal_goto('user/login');<br>}<br>?><br><p>Access Denied</p><br><br><br><div class="gmail_quote">On Dec 14, 2007 5:33 PM, Nicolas Tostin <
<a href="mailto:nicolast@logis.com.mx">nicolast@logis.com.mx</a>> 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 "page
403" then I would put in there custom php like:</font></div>
<div><font face="Arial" size="2"><?php</font></div>
<div><font face="Arial" size="2">global $user;</font></div>
<div><font face="Arial" size="2">if ($user->uid == 0) {</font></div>
<div><font face="Arial" size="2"> drupal_goto('user/login');</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"> echo 'Access denied';</font></div>
<div><font face="Arial" size="2">}</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">?></font></div>
<div><font face="Arial" size="2"></font> </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'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't access, they are taken to an "access denied" page.
<br><br>The first seems easy enough. I just changed the "Default 403 page" to
user/login. <br><br>But, I can'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>