💾 Archived View for chirale.org › 2007-10-18_7414943f94ece7c1964e3c2a9243d464.gmi captured on 2024-08-31 at 11:29:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-12)

-=-=-=-=-=-=-

HTTP 301 Page moved in Drupal

Scope: Move an old document to a new URL with HTTP 301 Permanent Redirect.

HTTP 301 Permanent Redirect

Module used (required if you don’t want to modify an existing page): URL aliases.

Create a new page (or edit an old one). Select “PHP code” in input type. Fill the url alias box, with the old document path Insert the following code: \<?php

// Permanent redirection

header(“HTTP/1 301 Moved Permanently”);

header(“Location: http://www.yoursite.tld/location&#8221;);

exit();

?\> Save.

http://www.yoursite.tld/location&#8221

Note: Obviously you can’t see the page (you’ll be redirected to specified address), but you can edit or delete the page from admin/content/node. As admin, if you try to unpublish the page you’ll be redirected anyway: you have to delete the page to fix it.

See also: http://www.somacon.com/pphp

http://www.somacon.com/pphp

https://web.archive.org/web/20071018000000*/http://tools.ietf.org/html/rfc2616#section-10.3.2

https://web.archive.org/web/20071018000000*/http://www.yoursite.tld/location&amp;#8221

/> exit();<br /> ?&gt;</li> <li>Save.</li> </ol> <p>Note: Obviously you can&#8217;t see the page (you&#8217;ll be redirected to specified address), but you can edit or delete the page from <strong>admin/content/node</strong>. As admin, if you try to unpublish the page you&#8217;ll be redirected anyway: you have to delete the page to fix it.</p> <p>See also: <a href=

https://web.archive.org/web/20071018000000*/http://www.somacon.com/p145.php

https://web.archive.org/web/20071018000000*/http://www.somacon.com/p145.php</a></p>