HTTP 301 Page moved in Drupal
Scope: Move an old document to a new URL with 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”);
exit();
?\> Save.
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
https://web.archive.org/web/20071018000000*/http://www.yoursite.tld/location&#8221 (https://web.archive.org)
/> exit();<br /> ?></li> <li>Save.</li> </ol> <p>Note: Obviously you can’t see the page (you’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’ll be redirected anyway: you have to delete the page to fix it.</p> <p>See also: <a href= (https://web.archive.org)
https://web.archive.org/web/20071018000000*/http://www.somacon.com/p145.php (https://web.archive.org)
https://web.archive.org/web/20071018000000*/http://www.somacon.com/p145.php</a></p> (https://web.archive.org)
Response: 20 (Success), text/gemini
| Original URL | gemini://chirale.org/2007-10-18_7414943f94ece7c1964e3c2a9... |
|---|---|
| Status Code | 20 (Success) |
| Content-Type | text/gemini; charset=utf-8 |