SMOLNET PORTAL home about changes

HTTP 301 Page moved in Drupal

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

HTTP 301 Permanent Redirect (http://tools.ietf.org)


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 (http://www.yoursite.tld)


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 (http://www.somacon.com)


https://web.archive.org/web/20071018000000*/http://tools.ietf.org/html/rfc2616#section-10.3.2 (https://web.archive.org)
https://web.archive.org/web/20071018000000*/http://www.yoursite.tld/location&amp;#8221 (https://web.archive.org)
/> 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)
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 URLgemini://chirale.org/2007-10-18_7414943f94ece7c1964e3c2a9...
Status Code20 (Success)
Content-Typetext/gemini; charset=utf-8