14 Jun
2006
14 Jun
'06
4:30 p.m.
On 6/14/06, Anguo <linux-tw@masquilier.org> wrote:
I said I know how to do a redirect in php. I would like to know how to do it the 'Drupal Way' (drupal_goto() handles aliases, etc...).
Since drupal_goto() outputs the Location header and terminates script execution, just set the 301 header before calling it: header('HTTP/1.1 301 Moved Permanently'); drupal_goto(...); -- Arto Bendiken | arto.bendiken@gmail.com | http://bendiken.net/